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 event is caused by a sprite coming from (or created by) the avatar.
|
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.
|
Constructor and Description |
---|
Event(int gameStep,
boolean fromAvatar,
int activeTypeId,
int passiveTypeId,
int activeSpriteId,
int passiveSpriteId,
Vector2d position)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Event o) |
Event |
copy()
Creates a copy of this event.
|
boolean |
equals(java.lang.Object o) |
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 (false), or something created by him (true)?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.