13 #include <wpi/Twine.h> 15 #include "Commands/Command.h" 16 #include "Commands/CommandGroupEntry.h" 130 bool IsInterruptible()
const;
160 virtual void _Initialize();
161 virtual void _Execute();
163 virtual void _Interrupted();
166 void CancelConflicts(
Command* command);
169 std::vector<CommandGroupEntry> m_commands;
172 std::list<CommandGroupEntry> m_children;
175 int m_currentCommandIndex = -1;
void AddParallel(Command *command)
Adds a new child Command to the group.
Definition: CommandGroup.cpp:56
Definition: Utility.cpp:119
virtual void Initialize()
Can be overridden by teams.
Definition: CommandGroup.cpp:114
void AddSequential(Command *command)
Adds a new Command to the group.
Definition: CommandGroup.cpp:16
virtual void End()
Can be overridden by teams.
Definition: CommandGroup.cpp:123
A CommandGroup is a list of commands which are executed in sequence.
Definition: CommandGroup.h:37
virtual void Execute()
Can be overridden by teams.
Definition: CommandGroup.cpp:116
virtual bool IsFinished()
Can be overridden by teams.
Definition: CommandGroup.cpp:118
The Command class is at the very core of the entire command framework.
Definition: Command.h:48
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:79
virtual void Interrupted()
Can be overridden by teams.
Definition: CommandGroup.cpp:125