Annotation Interface MovementInfo
This annotation contains movement-related properties for an entity implementation.
It can be used to specify default properties such as acceleration, deceleration,
whether the entity should turn while moving, and the velocity.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionintSpecifies the default acceleration of the entity.intSpecifies the default deceleration of the entity.booleanSpecifies whether the entity should turn while moving.floatSpecifies the default velocity of the entity in pixels per second.
-
Element Details
-
acceleration
int accelerationSpecifies the default acceleration of the entity. Defaults to 0.- Returns:
- the default acceleration of the entity
- Default:
0
-
deceleration
int decelerationSpecifies the default deceleration of the entity. Defaults to 0.- Returns:
- the default deceleration of the entity
- Default:
0
-
turnOnMove
boolean turnOnMoveSpecifies whether the entity should turn while moving. Defaults to true.- Returns:
- true if the entity should turn while moving, false otherwise
- Default:
true
-
velocity
float velocitySpecifies the default velocity of the entity in pixels per second. Defaults to 100.- Returns:
- the default velocity of the entity
- Default:
100.0f
-