aboutsummaryrefslogtreecommitdiff
path: root/frontend/cmd/cheat.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-01 10:18:22 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-01 10:18:22 +0100
commit798948dbe6f012e194f053c4e862cf697f30b793 (patch)
tree32c71420d1188f98cfb41b6f0d9536c5fa4bf5a7 /frontend/cmd/cheat.cpp
parentd7012045bb61f117fb7b9c51ddd03e4c54f25fe6 (diff)
more WIP (move some Player things to backend)
Diffstat (limited to 'frontend/cmd/cheat.cpp')
-rw-r--r--frontend/cmd/cheat.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontend/cmd/cheat.cpp b/frontend/cmd/cheat.cpp
index 7a020a3..ac392d6 100644
--- a/frontend/cmd/cheat.cpp
+++ b/frontend/cmd/cheat.cpp
@@ -1,12 +1,12 @@
#include "backend/print.h"
-#include "../Player.h"
+#include "../GameController.h"
using namespace std;
-FollowupAction Player::cmd_cheat(string &) {
- this->cheating = !this->cheating;
- lprtf("Cheats staan nu %s.\n", this->cheating ? "aan" : "uit");
+FollowupAction GameController::cmd_cheat(string &) {
+ this->player.cheating = !this->player.cheating;
+ lprtf("Cheats staan nu %s.\n", this->player.cheating ? "aan" : "uit");
return FollowupAction::NONE;
}