Modifier and Type | Field and Description |
---|---|
int |
activeSpriteId
Sprite ID of the object that triggers the event (either the avatar,
or something created by the avatar).
|
int |
activeTypeId
Type id of the object that triggers the event (either the avatar,
or something created by the avatar).
|
boolean |
fromAvatar
True if the avatar triggered the event, false
otherwise (example: something that is thrown by the
avatar hits a sprite).
|
int |
gameStep
Game step when the event happened.
|
int |
passiveSpriteId
Sprite ID of the object that received the event (what did the avatar,
or something created by the avatar, collided with?).
|
int |
passiveTypeId
Type id of the object that received the event (what did the avatar,
or something created by the avatar, collided with?).
|
Vector2d |
position
Position where the event took place.
|
public int gameStep
public boolean fromAvatar
public int activeTypeId
public int passiveTypeId
public int activeSpriteId
public int passiveSpriteId
public Vector2d position
public Event(int gameStep, boolean fromAvatar, int activeTypeId, int passiveTypeId, int activeSpriteId, int passiveSpriteId, Vector2d position)
gameStep
- when the event happened.fromAvatar
- did the avatar trigger the event (true), or something created by him (false)?activeTypeId
- type of the sprite (avatar or from avatar).passiveTypeId
- type of the sprite that collided with activeTypeId.activeSpriteId
- sprite ID of the avatar (or something created by the avatar).passiveSpriteId
- sprite ID of the other object.position
- where did the event take place.