#pragma once #include "map.h" #include "player.h" #include "monster.h" class Game { private: Map wall, bean, goldBean; Player player; Monster monster[4]; public: Game(); // 游戏加载 void Load(); // 游戏开始界面 void Start(); // 根据游戏胜负结果,绘制游戏结束界面 void End(bool result); // 游戏主体循环,返回true代表玩家胜利通关,false代表玩家失败 bool Loop(); // 游戏暂停界面 void Pause(); // 非阻塞按键获取 char GetKey(); };