You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
459 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#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();
private:
// 游戏开始界面
void Start();
// 根据游戏胜负结果,绘制游戏结束界面
void End(bool result);
// 游戏主体循环,返回true代表玩家胜利通关false代表玩家失败
bool Loop();
// 游戏暂停界面
void Pause();
// 非阻塞按键获取
char GetKey();
};