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:

Figure 7

The following source snippet ...

Get Mastering LibGDX Game Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.