22 #ifndef ULTIMA8_WORLD_WORLD_H 23 #define ULTIMA8_WORLD_WORLD_H 58 #include "ultima/ultima8/misc/common_types.h" 59 #include "ultima/ultima8/usecode/intrinsics.h" 80 static World *get_instance() {
107 bool switchMap(uint32 newmap);
111 _ethereal.push_front(objid);
116 return _ethereal.empty();
121 return _ethereal.front();
126 _ethereal.remove(objid);
130 void worldStats()
const;
144 bool isAlertActive()
const {
148 void setAlertActive(
bool active);
150 uint8 getGameDifficulty()
const {
154 void setGameDifficulty(uint8 difficulty);
156 uint16 getControlledNPCNum()
const {
157 return _controlledNPCNum;
159 void setControlledNPCNum(uint16 num);
161 uint32 getVargasShield()
const {
162 return _vargasShield;
164 void setVargasShield(uint32 val) {
168 INTRINSIC(I_getAlertActive);
169 INTRINSIC(I_setAlertActive);
170 INTRINSIC(I_clrAlertActive);
171 INTRINSIC(I_gameDifficulty);
172 INTRINSIC(I_getControlledNPCNum);
173 INTRINSIC(I_setControlledNPCNum);
174 INTRINSIC(I_resetVargasShield);
178 void setAlertActiveRemorse(
bool active);
179 void setAlertActiveRegret(
bool active);
181 static World *_world;
190 uint16 _controlledNPCNum;
196 uint32 _vargasShield;
CurrentMap * getCurrentMap() const
get the CurrentMap
Definition: world.h:100
Definition: detection.h:27
bool etherealEmpty() const
check if the ethereal void is empty
Definition: world.h:115
Definition: algorithm.h:29
void etherealRemove(ObjId objid)
remove an item from the ethereal void
Definition: world.h:125
Definition: current_map.h:45
ObjId etherealPeek() const
return (but don't remove) the top item from the ethereal void
Definition: world.h:120
void etherealPush(ObjId objid)
push an item onto the ethereal void
Definition: world.h:110