Files
PlanetFleet/toggleDebugCommand.cpp
T
2024-10-19 17:37:45 +03:00

16 lines
294 B
C++

#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());
}
}