Pol
Revision:cb584c9
|
#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_BLOCK > | m_mapinfo_vec |
unsigned short | m_mapwidth |
MapBlockIndex | mapdifl |
|
private |
Pol::Plib::RawMap::RawMap | ( | ) |
Definition at line 192 of file RawMap.cpp.
References ~RawMap().
|
default |
Referenced by RawMap().
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 | ||
) |
Definition at line 107 of file RawMap.cpp.
References uop_t::block_addr_t::block_body(), uop_t::COMPRESSION_TYPE_NO_COMPRESSION, ERROR_PRINT, uop_t::block_body_t::files(), uop_t::header_t::firstblock(), HashLittle2(), uop_t::header(), INFO_PRINT, uop_t::header_t::nfiles(), passert, and passert_r.
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().
|
private |
|
private |