Bandidos
|
Public Member Functions | |
HitRegistrationEvent (String type, float x, float y, BaseEntity hitEntity, int hitTool, int[] hitTypes) | |
float | getRegistrationX () |
float | getRegistrationY () |
BaseEntity | getHitEntity () |
int | getHitTool () |
int [] | getHitTypes () |
void | clean () |
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 event represents a hit registration event and holds the entity which got hit, what kind of types the hit was and what the tool was which hit it.
com.mygdx.game.hitRegistration.HitRegistrationEvent.HitRegistrationEvent | ( | String | type, |
float | x, | ||
float | y, | ||
BaseEntity | hitEntity, | ||
int | hitTool, | ||
int [] | hitTypes | ||
) |
Repairs the event for launch.
type | indicates the type of event |
hitEntity | is the entity which got hit |
hitTool | represents the object which hit the entity |
hitTypes | represents the types this hit was (Explosion, fire etc.) |
void com.mygdx.game.hitRegistration.HitRegistrationEvent.clean | ( | ) |
BaseEntity com.mygdx.game.hitRegistration.HitRegistrationEvent.getHitEntity | ( | ) |
Returns the hit entity instance
int com.mygdx.game.hitRegistration.HitRegistrationEvent.getHitTool | ( | ) |
Returns the tool which hit the entity
int [] com.mygdx.game.hitRegistration.HitRegistrationEvent.getHitTypes | ( | ) |
Returns the hit types which hit the entity
float com.mygdx.game.hitRegistration.HitRegistrationEvent.getRegistrationX | ( | ) |
Returns the x coordinate where the hit took place
float com.mygdx.game.hitRegistration.HitRegistrationEvent.getRegistrationY | ( | ) |