📄 worldmodel.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -