ScummVM API documentation
Ultima::Nuvie::Map Class Reference

Public Member Functions

 Map (const Configuration *cfg)
 
void set_actor_manager (ActorManager *am)
 
Actorget_actor (uint16 x, uint16 y, uint8 z, bool inc_surrounding_objs=true)
 
bool loadMap (TileManager *tm, ObjManager *om)
 
byte * get_map_data (uint8 level)
 
uint16 * get_roof_data (uint8 level)
 
const Tileget_tile (uint16 x, uint16 y, uint8 level, bool original_tile=false)
 
uint16 get_width (uint8 level) const
 
bool is_passable (uint16 x, uint16 y, uint8 level)
 
bool is_water (uint16 x, uint16 y, uint16 level, bool ignore_objects=false)
 
bool is_boundary (uint16 x, uint16 y, uint8 level)
 
bool is_missile_boundary (uint16 x, uint16 y, uint8 level, Obj *excluded_obj=nullptr)
 
bool is_damaging (uint16 x, uint16 y, uint8 level, bool ignore_objects=false)
 
bool can_put_obj (uint16 x, uint16 y, uint8 level)
 
bool actor_at_location (uint16 x, uint16 y, uint8 level, bool inc_surrounding_objs=true)
 
uint8 get_impedance (uint16 x, uint16 y, uint8 level, bool ignore_objects=false)
 
const Tileget_dmg_tile (uint16 x, uint16 y, uint8 level)
 
bool is_passable (uint16 x, uint16 y, uint8 level, NuvieDir dir)
 
bool is_passable (uint16 x1, uint16 y1, uint16 x2, uint16 y2, uint8 level)
 
bool is_passable_from_dir (uint16 x, uint16 y, uint8 level, NuvieDir dir)
 
bool has_roof (uint16 x, uint16 y, uint8 level) const
 
void set_roof_mode (bool roofs)
 
const char * look (uint16 x, uint16 y, uint8 level)
 
bool lineTest (int start_x, int start_y, int end_x, int end_y, uint8 level, uint8 flags, LineTestResult &Result, uint32 skip=0, Obj *excluded_obj=nullptr, bool want_screen_space=false)
 
bool testIntersection (int x, int y, uint8 level, uint8 flags, LineTestResult &Result, Obj *excluded_obj=nullptr)
 
void saveRoofData ()
 
Common::Path getRoofTilesetFilename () const
 

Protected Member Functions

Common::Path getRoofDataFilename () const
 
void insertSurfaceSuperChunk (const unsigned char *schunk_ptr, const unsigned char *chunk_data, uint8 schunk_num)
 
void insertSurfaceChunk (const unsigned char *chunk, uint16 x, uint16 y)
 
void insertDungeonSuperChunk (const unsigned char *schunk_ptr, const unsigned char *chunk_data, uint8 level)
 
void insertDungeonChunk (const unsigned char *chunk, uint16 x, uint16 y, uint8 level)
 
void loadRoofData ()
 

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