1 #ifndef __COMMAND_OBJECT__
2 #define __COMMAND_OBJECT__
6 //------------------------------------------------------------------------------------------------------------
8 //------------------------------------------------------------------------------------------------------------
15 //------------------------------------------------------------------------------------------------------------
16 // Constructors & Destructors
17 //------------------------------------------------------------------------------------------------------------
21 * Creates a command with the given text
22 * @return Returns the created commandObject pointer
27 * Destroys the command
30 //------------------------------------------------------------------------------------------------------------
32 //------------------------------------------------------------------------------------------------------------
35 * Includes the command into the given queue for execution
36 * @param executionQueue Is the queue in which is included the command
38 virtual void includeToExecute(std::deque<CommandObject *> &executionQueue)=0;
41 * Counts the command(s)
42 * @return The value of commands that represents this
44 virtual int count() = 0;
47 * Method that clears the command
49 virtual void clear() = 0;
51 //------------------------------------------------------------------------------------------------------------
53 //------------------------------------------------------------------------------------------------------------
56 //------------------------------------------------------------------------------------------------------------
58 //------------------------------------------------------------------------------------------------------------