Midnight Blue Game and Engine
Public Member Functions | Protected Member Functions | List of all members
MidnightBlue.LaunchCommand Class Reference

Launches the ship from a landed state More...

Inheritance diagram for MidnightBlue.LaunchCommand:
Inheritance graph
Collaboration diagram for MidnightBlue.LaunchCommand:
Collaboration graph

Public Member Functions

 LaunchCommand (Keys key, CommandType type)
 Initializes a new instance of the T:MidnightBlue.LaunchCommand 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)
 Launches the ship from landed on key press. 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]
 

Detailed Description

Launches the ship from a landed state

Constructor & Destructor Documentation

§ LaunchCommand()

MidnightBlue.LaunchCommand.LaunchCommand ( Keys  key,
CommandType  type 
)
inline

Initializes a new instance of the T:MidnightBlue.LaunchCommand class.

Parameters
keyKey to assign to.
typeTrigger type.

Member Function Documentation

§ OnKeyPress()

override void MidnightBlue.LaunchCommand.OnKeyPress ( Entity  e)
inlineprotectedvirtual

Launches the ship from landed on key press.

Parameters
eEntity with ship controller to operate on.

Implements MB2D.IO.Command.

Here is the call graph for this function:

The documentation for this class was generated from the following file: