Midnight Blue Game and Engine
|
Performs logic aside from movement required to execute when moving the ship such as consuming fuel. More...
Public Member Functions | |
MoveShip (Keys key, CommandType type) | |
Initializes a new instance of the T:MidnightBlue.MoveShip class. More... | |
Public Member Functions inherited from MB2D.IO.Command | |
bool | Execute (Entity e=null) |
Executes the specific command on the entity parameter More... | |
Protected Member Functions | |
override void | OnKeyPress (Entity e) |
Consumes fuel, stopping the ship if there's none remaining More... | |
Protected Member Functions inherited from MB2D.IO.Command | |
Command (Keys key, CommandType commandType) | |
Initializes a new instance of the T:MidnightBlue.Command class. More... | |
Additional Inherited Members | |
Properties inherited from MB2D.IO.Command | |
CommandType | Type [get, set] |
Gets or sets the trigger type of the command. More... | |
Keys | Key [get] |
Gets the keycode associated with the command. More... | |
bool | Disabled [get, set] |
Performs logic aside from movement required to execute when moving the ship such as consuming fuel.
|
inline |
Initializes a new instance of the T:MidnightBlue.MoveShip class.
key | Key to assign to. |
type | Trigger type. |
|
inlineprotectedvirtual |
Consumes fuel, stopping the ship if there's none remaining
e | Entity with inventory to operate on. |
Implements MB2D.IO.Command.