worldmodel.h
来自「巫魔问题求解」· C头文件 代码 · 共 57 行
H
57 行
#pragma once
#include "ServerMap.h"
#include "Explorer.h"
namespace _server
{
class GameEngine;
class WorldModel
{
public:
//Constructor
WorldModel(unsigned int x_border, unsigned int y_border, GameEngine &ge);
WorldModel(char *filename, GameEngine &ge);
//Destructor
~WorldModel(void);
private:
//Copy constructor
WorldModel(const WorldModel & from);
public:
//Update
void Update(void);
void Reset(void);
void Reset(char *filename);
public:
//references
ServerMap &TheServerMap(void);
Explorer &TheExplorer(void);
GameEngine &TheGameEngine(void);
const ServerMap &GetServerMap(void) const;
const Explorer &GetExplorer(void) const;
const GameEngine &GetGameEngine(void) const;
public:
//informations
bool IsHawl(void) const;
bool & _su_IsHawl(void);
bool IsBump(void) const;
bool & _su_IsBump(void);
bool IsNewlyCreated(void) const;
bool & _su_IsNewlyCreated(void);
protected:
ServerMap *mpServerMap;
Explorer *mpExplorer;
GameEngine *mpGameEngine;
protected:
bool mIsHawl;
bool mIsBump;
bool mIsNewlyCreated;
};
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?