C# Class RemoteTech.FlightComputer.Commands.AbstractCommand

Inheritance: ICommand
Show file Open project: RemoteTechnologiesGroup/RemoteTech

Public Methods

Method Description
Abort ( ) : void
AbstractCommand ( ) : System

Creates a new Guid for the current command

CommandCanceled ( FlightComputer computer ) : void

This method will be triggerd after deleting a command from the list.

CommandEnqueued ( FlightComputer computer ) : void

This method will be triggerd right after the command was enqueued to the flight computer list.

CompareTo ( ICommand dc ) : int
Execute ( FlightComputer f, FlightCtrlState fcs ) : bool
Load ( ConfigNode n, FlightComputer fc ) : bool

Load the basic informations for every command.

LoadCommand ( ConfigNode n, FlightComputer fc ) : ICommand

Load and creates a command after saving a command. Returns null if no object has been loaded.

Pop ( FlightComputer f ) : bool
Save ( ConfigNode node, FlightComputer computer ) : void

Save the basic informations for every command.

Method Details

Abort() public method

public Abort ( ) : void
return void

AbstractCommand() public method

Creates a new Guid for the current command
public AbstractCommand ( ) : System
return System

CommandCanceled() public method

This method will be triggerd after deleting a command from the list.
public CommandCanceled ( FlightComputer computer ) : void
computer FlightComputer Current flight computer
return void

CommandEnqueued() public method

This method will be triggerd right after the command was enqueued to the flight computer list.
public CommandEnqueued ( FlightComputer computer ) : void
computer FlightComputer Current flightcomputer
return void

CompareTo() public method

public CompareTo ( ICommand dc ) : int
dc ICommand
return int

Execute() public method

public Execute ( FlightComputer f, FlightCtrlState fcs ) : bool
f FlightComputer
fcs FlightCtrlState
return bool

Load() public method

Load the basic informations for every command.
public Load ( ConfigNode n, FlightComputer fc ) : bool
n System.ConfigNode Node with the command infos
fc FlightComputer Current flightcomputer
return bool

LoadCommand() public static method

Load and creates a command after saving a command. Returns null if no object has been loaded.
public static LoadCommand ( ConfigNode n, FlightComputer fc ) : ICommand
n System.ConfigNode Node with the command infos
fc FlightComputer Current flightcomputer
return ICommand

Pop() public method

public Pop ( FlightComputer f ) : bool
f FlightComputer
return bool

Save() public method

Save the basic informations for every command.
public Save ( ConfigNode node, FlightComputer computer ) : void
node System.ConfigNode Node to save in
computer FlightComputer Current flightcomputer
return void