#ifndef ABSTRACT_COMMAND_H #define ABSTRACT_COMMAND_H #include #include namespace battleship{ class AbstractCommand{ protected: AbstractCommand(std::string str) : cmdStr(str){} virtual void handle(); virtual void validate(){} virtual void execute(); std::string cmdStr; std::vector arguments; }; } #endif