O'Reilly logo

Mastering LibGDX Game Development by Patrick Hoey

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

Figure 7

The following source snippet ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required