mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-26 19:33:38 +00:00
16 lines
294 B
C++
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());
|
|
}
|
|
}
|