ScummVM API documentation
Ultima::Ultima8::World Class Reference

Public Member Functions

void clear ()
 clear the world (maps, currentmap, ethereal items)
 
void reset ()
 reset the world (clear everything and re-initialize maps)
 
void initMaps ()
 create (empty) maps, currentmap
 
void loadNonFixed (Common::SeekableReadStream *rs)
 load U8's nonfixed.dat into the Maps
 
void loadItemCachNPCData (Common::SeekableReadStream *itemcach, Common::SeekableReadStream *npcdata)
 load U8's itemcach.dat, npcdata.dat into the world
 
CurrentMapgetCurrentMap () const
 get the CurrentMap
 
bool switchMap (uint32 newmap)
 
void etherealPush (ObjId objid)
 push an item onto the ethereal void
 
bool etherealEmpty () const
 check if the ethereal void is empty
 
ObjId etherealPeek () const
 return (but don't remove) the top item from the ethereal void
 
void etherealRemove (ObjId objid)
 remove an item from the ethereal void
 
void worldStats () const
 output some statistics about the world
 
void saveMaps (Common::WriteStream *ws)
 save the Maps in World.
 
bool loadMaps (Common::ReadStream *rs, uint32 version)
 load Maps
 
void save (Common::WriteStream *ws)
 save the rest of the World data (ethereal items, current map number).
 
bool load (Common::ReadStream *rs, uint32 version)
 load World data
 
bool isAlertActive () const
 
void setAlertActive (bool active)
 
uint8 getGameDifficulty () const
 
void setGameDifficulty (uint8 difficulty)
 
uint16 getControlledNPCNum () const
 
void setControlledNPCNum (uint16 num)
 
uint32 getVargasShield () const
 
void setVargasShield (uint32 val)
 
 INTRINSIC (I_getAlertActive)
 
 INTRINSIC (I_setAlertActive)
 
 INTRINSIC (I_clrAlertActive)
 
 INTRINSIC (I_gameDifficulty)
 
 INTRINSIC (I_getControlledNPCNum)
 
 INTRINSIC (I_setControlledNPCNum)
 
 INTRINSIC (I_resetVargasShield)
 

Static Public Member Functions

static Worldget_instance ()
 

Member Function Documentation

◆ switchMap()

bool Ultima::Ultima8::World::switchMap ( uint32  newmap)

switch map. This unloads the CurrentMap back into a Map, kills processes, and loads a new Map into the CurrentMap.

Returns
true if successful

The documentation for this class was generated from the following file: