Bandidos
Public Member Functions | List of all members
com.mygdx.game.engine.events.Event Class Reference
Inheritance diagram for com.mygdx.game.engine.events.Event:
com.mygdx.game.engine.entities.components.collision.CollisionEvent com.mygdx.game.engine.entities.components.ComponentEvent com.mygdx.game.engine.entities.components.rendering.AnimationEvent com.mygdx.game.engine.entities.EntityEvent com.mygdx.game.engine.tweening.TweenEvent com.mygdx.game.events.ButtonEvent com.mygdx.game.events.HealthEvent com.mygdx.game.events.TutorialEvent com.mygdx.game.hitRegistration.HitRegistrationEvent com.mygdx.game.touchinput.TouchEvent

Public Member Functions

 Event (String type)
 
String getType ()
 
EventDispatcher getDispatcher ()
 
void setDispatcher (EventDispatcher dispatcherValue)
 
void clean ()
 

Detailed Description

An event is an information container which can be dispatched and listened to by EventDispatchers.

Author
Ramses Di Perna

Constructor & Destructor Documentation

◆ Event()

com.mygdx.game.engine.events.Event.Event ( String  type)

Member Function Documentation

◆ clean()

void com.mygdx.game.engine.events.Event.clean ( )

Cleans The event from any references after it is used.

◆ getDispatcher()

EventDispatcher com.mygdx.game.engine.events.Event.getDispatcher ( )

The EventDispatcher which dispatched this event

Returns
The EventDispatcher linked to the event

◆ getType()

String com.mygdx.game.engine.events.Event.getType ( )

Name of the event to determine its event type.

Returns
Type of event.

◆ setDispatcher()

void com.mygdx.game.engine.events.Event.setDispatcher ( EventDispatcher  dispatcherValue)

Sets the EventDispatcher which dispatched this event. If it already has a value, it can not be changed to another.

Parameters
TheEventDispatcher to link to the event.

The documentation for this class was generated from the following file: