Package name.moore.kevin.ze.game.verbs
Class move
java.lang.Object
name.moore.kevin.ze.game.verbs.move
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 -
Constructor Summary
ConstructorsConstructorDescriptionmove(com.simsilica.es.EntityId vehicle)The constructor anticipates the parameter as the EntityId of something like a ship. -
Method Summary
Modifier and TypeMethodDescriptionThe 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>getMass()
-
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
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:
-