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

The dependency graph implementation

With the fundamentals of the dependency graph covered, we will now take a look at the high-level class diagram (Figure 4), which describes the new classes and relationships for implementing the quest system:

The dependency graph implementation

Figure 4

The left-half of this class diagram represents the notification propagation via the observer pattern. For instance, when the player entity selects a quest item or walks over a designated quest task area, those notifications bubble up to the PlayerHUD, which is an observer for those ComponentEvent notifications. Depending on the type of notification trigger, this will get passed to the QuestUI to update ...

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