List of all members.
Constructor & Destructor Documentation
Subsystem::Subsystem |
( |
const char * |
name | ) |
|
Creates a subsystem with the given name
- Parameters:
-
name | the name of the subsystem |
Member Function Documentation
Command * Subsystem::GetCurrentCommand |
( |
| ) |
|
Returns the command which currently claims this subsystem.
- Returns:
- the command which currently claims this subsystem
Command * Subsystem::GetDefaultCommand |
( |
| ) |
|
Returns the default command (or null if there is none).
- Returns:
- the default command
void Subsystem::InitDefaultCommand |
( |
| ) |
[virtual] |
Initialize the default command for this subsystem This is meant to be the place to call SetDefaultCommand in a subsystem and will be called on all the subsystems by the CommandBase method before the program starts running by using the list of all registered Subsystems inside the Scheduler.
This should be overridden by a Subsystem that has a default Command
void Subsystem::SetCurrentCommand |
( |
Command * |
command | ) |
|
Sets the current command
- Parameters:
-
command | the new current command |
void Subsystem::SetDefaultCommand |
( |
Command * |
command | ) |
|
Sets the default command. If this is not called or is called with null, then there will be no default command for the subsystem.
WARNING: This should NOT be called in a constructor if the subsystem is a singleton.
- Parameters:
-
command | the default command (or null if there should be none) |
The documentation for this class was generated from the following files: