?? state.cpp
字號:
#include"wupus.h"
bool Wupus_World::current(const Object OBJECT)
{
if(world[hunter.pos->x][hunter.pos->y]==OBJECT)
return true;
return false;
}
void Wupus_World::set_percepts()
{
hunter.percept.stench= (adjacent(Living_Wupus) ||adjacent(Dead_Wupus) || current(Dead_Wupus));
hunter.percept.breeze= adjacent(Pit);
hunter.percept.glitter=current(Gold);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -