public class SteerCommand extends ShipCommand
Note: This does not adjust your ship's orientation to match, it only effects your movement direction. If you have no velocity, this command will have no effect.
Note: This command can be toggled with the optional second parameter to NOT block the ship, this is useful for performing more complex maneuvers.
| Constructor and Description |
|---|
SteerCommand(int degrees)
Creates a blocking command to steer a ship.
|
SteerCommand(int degrees,
boolean block)
Creates a command to steer 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, toStringpublic SteerCommand(int degrees)
degrees - the number of degrees to adjust coursepublic SteerCommand(int degrees,
boolean block)
degrees - the number of degrees to adjust courseblock - indicates if the command should block or notpublic java.lang.String getName()
getName in class ShipCommandpublic static int getOngoingEnergyCost()