Bandidos
Public Member Functions | List of all members
com.mygdx.game.events.HealthEvent Class Reference
Inheritance diagram for com.mygdx.game.events.HealthEvent:
com.mygdx.game.engine.events.Event

Public Member Functions

 HealthEvent (String type, float healthChanged, float newHealth)
 
float getHealthChanged ()
 
float getNewHealth ()
 
- Public Member Functions inherited from com.mygdx.game.engine.events.Event
 Event (String type)
 
String getType ()
 
EventDispatcher getDispatcher ()
 
void setDispatcher (EventDispatcher dispatcherValue)
 
void clean ()
 

Detailed Description

This class and all events extending this class represent events which involve health.

Author
Ramses Di Perna

Constructor & Destructor Documentation

◆ HealthEvent()

com.mygdx.game.events.HealthEvent.HealthEvent ( String  type,
float  healthChanged,
float  newHealth 
)

Member Function Documentation

◆ getHealthChanged()

float com.mygdx.game.events.HealthEvent.getHealthChanged ( )

Returns the amount of health changed to the original health value

Returns
delta of change

◆ getNewHealth()

float com.mygdx.game.events.HealthEvent.getNewHealth ( )

Returns the new health value which the delta caused

Returns
new health value.

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