Class position

java.lang.Object
name.moore.kevin.ze.game.verbs.position

public class position extends Object
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 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

      public position setcoordinates() throws ZodiacDataException
      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

      public position setdestination(com.simsilica.es.EntityId d)
    • setorbit

      public position setorbit()
      Without parameters assume the target destination is an orbit.
      Returns: