8 #ifndef __COMMAND_GROUP_H__
9 #define __COMMAND_GROUP_H__
11 #include "Commands/Command.h"
12 #include "Commands/CommandGroupEntry.h"
47 bool IsInterruptible()
const;
56 virtual void _Initialize();
57 virtual void _Interrupted();
58 virtual void _Execute();
62 void CancelConflicts(
Command *command);
65 std::vector<CommandGroupEntry> m_commands;
68 std::list<CommandGroupEntry> m_children;
71 int m_currentCommandIndex = -1;
A CommandGroup is a list of commands which are executed in sequence.
Definition: CommandGroup.h:37
virtual void Initialize()
The initialize method is called the first time this Command is run after being started.
Definition: CommandGroup.cpp:284
void AddParallel(Command *command)
Adds a new child Command to the group.
Definition: CommandGroup.cpp:119
void AddSequential(Command *command)
Adds a new Command to the group.
Definition: CommandGroup.cpp:32
virtual void Interrupted()
Called when the command ends because somebody called cancel() or another command shared the same requ...
Definition: CommandGroup.cpp:293
The Command class is at the very core of the entire command framework.
Definition: Command.h:54
virtual bool IsFinished()
Returns whether this command is finished.
Definition: CommandGroup.cpp:295
virtual void Execute()
The execute method is called repeatedly until this Command either finishes or is canceled.
Definition: CommandGroup.cpp:287
virtual void End()
Called when the command ended peacefully.
Definition: CommandGroup.cpp:290