Package name.moore.kevin.ze.game.verbs
Class position
java.lang.Object
name.moore.kevin.ze.game.verbs.position
Update the coordinates and destinations of a ship. Calculations are done by
the movementState
components used
- inorbit = rw
- coordinates = rw
- destination = rw
- Author:
- Kevin Moore
<dev@kevin.moore.name> - See Also:
movementState
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet coordinates based on the orbit we are in.setdestination(com.simsilica.es.EntityId d)setorbit()Without parameters assume the target destination is an orbit.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
v
private com.simsilica.es.EntityId v
-
-
Constructor Details
-
position
public position(com.simsilica.es.EntityId vehicle)
-
-
Method Details
-
setcoordinates
Set coordinates based on the orbit we are in.If we were inorbit of a planet then we need the coordinates if its star, and go from that...
- Returns:
- Throws:
ZodiacDataException
-
setdestination
-
setorbit
Without parameters assume the target destination is an orbit.- Returns:
-