#pragma once #ifndef CONSOLE_COMMAND_H #define CONSOLE_COMMAND_H #include"GameManager.h" #include"Unit.h" #include"Listbox.h" #include"Player.h" #include #include namespace game { namespace gui{ class ConsoleCommand{ public: ConsoleCommand(core::GameManager*,Listbox*,std::vector,irr::core::stringw,std::vector); ~ConsoleCommand(); void execute(); private: core::GameManager *gameManager; Listbox *listbox; void printConsoleMessage(irr::core::stringw); std::vector players; irr::core::stringw name; std::vector arguments; irr::core::stringw commandList[2]={"addUnit","debugUnits"}; // #0 void addUnit(); // #1 void debugUnits(); }; } } #endif