class Game{
private:
Player &player; // 操作するプレイヤー
Server &server; // 所属サーバ
Nation *nation; // 所属国
public:
Game(Server &sarg, Player &parg):server(sarg), player(parg), nation(NULL){}
void gameLoop();
LoopControl act(const char flag[]="");
const static int convert(const char input);
const static char inverseConvert(const int input);
void enterNation(Nation * const n){
n->addPlayer(&player);
Game::nation = n;
}
Server &getServer(){return server;}
Player &getPlayer(){return player;}
Nation *getNation(){
const bool DEBUG = true;
if(DEBUG){
std::cout << "-_~DEBUG Game.h getNation()~_-" << std::endl;
if(nation == NULL) std::cout << "shozokukokunasi" << std::endl;
std::cout << std::endl;
}
return nation;
}
};
PR