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 of QuestUI
will outline some important functionality that you may want to add to your own implementation:
package com.packtpub.libgdx.bludbourne.UI; … public class QuestUI extends Window { private static final String TAG = ...