public class RotateCommand extends ShipCommand
Constructor and Description |
---|
RotateCommand(int degrees)
Creates a command to rotate a ship.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
static int |
getOngoingEnergyCost()
Gets the energy cost per second of this command.
|
equals, executesImmediately, getInitialEnergyCost, getMessage, isBlocking, toString
public RotateCommand(int degrees)
degrees
- the number of degrees to rotatepublic java.lang.String getName()
getName
in class ShipCommand
public static int getOngoingEnergyCost()