#include "toggleDebugCommand.h" #include "game.h" namespace battleship{ void ToggleDebugCommand::validate(){ if(!arguments.empty()) return; } void ToggleDebugCommand::execute(){ AbstractCommand::execute(); Game *game = Game::getSingleton(); game->setDebug(!game->isDebug()); } }