QuestUI
We need some way to communicate to the player what quests they have accepted so they know what to finish and to whom to return the quest.
The QuestUI
is composed of two primary panes. The left ScrollPane
represents all the quests the player currently has accepted or finished, where the QuestGraph
(each one representing a separate quest) is stored in a List
. The right ScrollPane
represents all the tasks associated with a selected quest, where the QuestTask
is also stored in a List
.
QuestUI
can easily be extended with additional features that fit your specifications. We will discuss a very basic quest log, QuestUI
, starting with the following diagram (Figure 7), which outlines the components of the quest log:
The following source snippet ...
Get Mastering LibGDX Game Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.