Book Image

Mastering LibGDX Game Development

By : Patrick Hoey
Book Image

Mastering LibGDX Game Development

By: Patrick Hoey

Overview of this book

Table of Contents (18 chapters)
Mastering LibGDX Game Development
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

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 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 = 
              ...