14 #include "Commands/Command.h"
15 #include "Commands/CommandGroupEntry.h"
49 bool IsInterruptible()
const;
58 virtual void _Initialize();
59 virtual void _Interrupted();
60 virtual void _Execute();
64 void CancelConflicts(
Command* command);
67 std::vector<CommandGroupEntry> m_commands;
70 std::list<CommandGroupEntry> m_children;
73 int m_currentCommandIndex = -1;
void AddParallel(Command *command)
Adds a new child Command to the group.
Definition: CommandGroup.cpp:109
virtual void Initialize()
The initialize method is called the first time this Command is run after being started.
Definition: CommandGroup.cpp:265
void AddSequential(Command *command)
Adds a new Command to the group.
Definition: CommandGroup.cpp:32
virtual void End()
Called when the command ended peacefully.
Definition: CommandGroup.cpp:271
A CommandGroup is a list of commands which are executed in sequence.
Definition: CommandGroup.h:39
virtual void Execute()
The execute method is called repeatedly until this Command either finishes or is canceled.
Definition: CommandGroup.cpp:268
virtual bool IsFinished()
Returns whether this command is finished.
Definition: CommandGroup.cpp:276
The Command class is at the very core of the entire command framework.
Definition: Command.h:52
virtual void Interrupted()
Called when the command ends because somebody called cancel() or another command shared the same requ...
Definition: CommandGroup.cpp:274