Bandidos
|
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 () |
This class and all events extending this class represent events which involve health.
com.mygdx.game.events.HealthEvent.HealthEvent | ( | String | type, |
float | healthChanged, | ||
float | newHealth | ||
) |
float com.mygdx.game.events.HealthEvent.getHealthChanged | ( | ) |
Returns the amount of health changed to the original health value
float com.mygdx.game.events.HealthEvent.getNewHealth | ( | ) |
Returns the new health value which the delta caused