aboutsummaryrefslogtreecommitdiff
path: root/frontend/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/main.cpp')
-rw-r--r--frontend/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontend/main.cpp b/frontend/main.cpp
index 780a649..f8e2526 100644
--- a/frontend/main.cpp
+++ b/frontend/main.cpp
@@ -6,7 +6,7 @@
#include "backend/Dungeon.h"
#include "GameData.h"
-#include "Player.h"
+#include "GameController.h"
#include "Exception.h"
#include "load_dungeon.h"
#include "generate_dungeon.h"
@@ -33,17 +33,17 @@ static unique_ptr<Dungeon> make_dungeon() noexcept {
FollowupAction game_main() {
unique_ptr<Dungeon> dungeon = make_dungeon();
- Player player { *dungeon };
+ GameController game { *dungeon };
while (1) {
string line = rl();
if (line.length() == 0) continue;
- FollowupAction action = player.cmd(line);
+ FollowupAction action = game.cmd(line);
switch (action) {
case NONE: break;
case UPDATE: {
- dungeon->update(&player.get_location());
+ dungeon->update();
break;
}
default: return action;