Pol  Revision:cb584c9
Pol::Plib::RawMap Class Reference

#include <RawMap.h>

Public Member Functions

 RawMap ()
 
 ~RawMap ()
 
void add_block (const Pol::Core::USTRUCT_MAPINFO_BLOCK &block)
 
Pol::Core::USTRUCT_MAPINFO get_cell (unsigned int blockidx, unsigned int x_offset, unsigned int y_offset)
 
unsigned int load_full_map (FILE *mapfile, FILE *mapdif_file)
 
unsigned int load_full_map (int uo_mapid, std::istream &uopfile)
 
unsigned int load_map_difflist (FILE *mapdifl_file)
 
signed char rawinfo (unsigned short x, unsigned short y, Pol::Core::USTRUCT_MAPINFO *gi)
 
void set_bounds (unsigned short width, unsigned short height)
 

Private Types

typedef std::map< unsigned int, unsigned int > MapBlockIndex
 

Private Attributes

bool is_init
 
unsigned short m_mapheight
 
std::vector< Pol::Core::USTRUCT_MAPINFO_BLOCKm_mapinfo_vec
 
unsigned short m_mapwidth
 
MapBlockIndex mapdifl
 

Detailed Description

Definition at line 12 of file RawMap.h.

Member Typedef Documentation

typedef std::map<unsigned int, unsigned int> Pol::Plib::RawMap::MapBlockIndex
private

Definition at line 20 of file RawMap.h.

Constructor & Destructor Documentation

Pol::Plib::RawMap::RawMap ( )

Definition at line 192 of file RawMap.cpp.

References ~RawMap().

Pol::Plib::RawMap::~RawMap ( )
default

Referenced by RawMap().

Member Function Documentation

void Pol::Plib::RawMap::add_block ( const Pol::Core::USTRUCT_MAPINFO_BLOCK block)

Definition at line 41 of file RawMap.cpp.

USTRUCT_MAPINFO Pol::Plib::RawMap::get_cell ( unsigned int  blockidx,
unsigned int  x_offset,
unsigned int  y_offset 
)

Definition at line 19 of file RawMap.cpp.

unsigned int Pol::Plib::RawMap::load_full_map ( FILE *  mapfile,
FILE *  mapdif_file 
)

Definition at line 67 of file RawMap.cpp.

References Pol::UoTool::buffer, and passert_r.

Referenced by Pol::Core::rawmapfullread().

unsigned int Pol::Plib::RawMap::load_full_map ( int  uo_mapid,
std::istream &  uopfile 
)
unsigned int Pol::Plib::RawMap::load_map_difflist ( FILE *  mapdifl_file)

Definition at line 52 of file RawMap.cpp.

Referenced by Pol::Core::read_map_difs().

signed char Pol::Plib::RawMap::rawinfo ( unsigned short  x,
unsigned short  y,
Pol::Core::USTRUCT_MAPINFO gi 
)

Definition at line 25 of file RawMap.cpp.

References passert, passert_r, and Pol::Core::USTRUCT_MAPINFO::z.

Referenced by Pol::Core::rawmapinfo().

void Pol::Plib::RawMap::set_bounds ( unsigned short  width,
unsigned short  height 
)

Definition at line 46 of file RawMap.cpp.

Referenced by Pol::Core::rawmapfullread().

Member Data Documentation

bool Pol::Plib::RawMap::is_init
private

Definition at line 15 of file RawMap.h.

unsigned short Pol::Plib::RawMap::m_mapheight
private

Definition at line 24 of file RawMap.h.

std::vector<Pol::Core::USTRUCT_MAPINFO_BLOCK> Pol::Plib::RawMap::m_mapinfo_vec
private

Definition at line 17 of file RawMap.h.

unsigned short Pol::Plib::RawMap::m_mapwidth
private

Definition at line 23 of file RawMap.h.

MapBlockIndex Pol::Plib::RawMap::mapdifl
private

Definition at line 21 of file RawMap.h.


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