Skip to content

EventService

Theboah edited this page Aug 28, 2024 · 2 revisions

Introduction

EventService is a screen unique service that enables the tracking of events that are independant from two entities interacting. This service was created to track the different quest and statistic relevant player actions and game events that occur. The EventService is now used to handle switch screens and handle overlays. However this has led to large coupeling and will be deprecated during sprint 2. Quests now are independant to the eventService as of 28/08/2024.

Usage

The EventService is established when a new Screen is switched to or created. This service may then be accessed using the Service locator EventService getEventService() method. You may then access the EventSerivce's EventHandler using EventHandler getGlobalEventHandler() and from there add listeners and triggers as a standard EventHandler.

Please see Event System for more information

Clone this wiki locally