Class move

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

public class move extends Object
Movement calculations, this doesnt alter the coordinates, just calculates whats possible.

Movement is provided by the hull and it's accumulated energy.

components used

  • parts, specification, physical = r
  • accumulatorl = rw
Author:
Kevin Moore <dev@kevin.moore.name>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static org.slf4j.Logger
     
    private com.simsilica.es.EntityId
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    move​(com.simsilica.es.EntityId vehicle)
    The constructor anticipates the parameter as the EntityId of something like a ship.
  • Method Summary

    Modifier and Type
    Method
    Description
    The scaled maximum distance this movement can manage.
    org.jscience.physics.amount.Amount<javax.measure.quantity.Energy>
    Release the energy stored in the hull accumulator.
    org.jscience.physics.amount.Amount<javax.measure.quantity.Mass>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • m

      private com.simsilica.es.EntityId m
  • Constructor Details

    • move

      public move(com.simsilica.es.EntityId vehicle)
      The constructor anticipates the parameter as the EntityId of something like a ship.
      Parameters:
      vehicle - with a hull and accumulator.
  • Method Details

    • getDistance

      public Double getDistance()
      The scaled maximum distance this movement can manage.
      Returns:
    • getMass

      public org.jscience.physics.amount.Amount<javax.measure.quantity.Mass> getMass()
    • getEnergy

      public org.jscience.physics.amount.Amount<javax.measure.quantity.Energy> getEnergy()
      Release the energy stored in the hull accumulator.
      Returns: