📄 hunter.cpp
字号:
Wupus_World::Wupus_World()
{
int x=0;
max_x=MAX_X;
max_y=MAX_Y;
world=new Object_Column[max_x+2];
for(x=0; x < max_x+2; x++)
world[x]=new Object[max_y+2];
init_map();
init_agent();
WupusPos.x=-100;
WupusPos.y=-100;
WupusPos.parent=NULL;
}
Wupus_World::~Wupus_World()
{
int x=0;
for(x=0; x < max_x+2; x++)
delete []world[x];
delete []world;
world=NULL;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -