Pol  Revision:e09f183
Pol::UOConvert Namespace Reference

Classes

class  StaticsByZ

Functions

void create_landtiles_cfg ()
void create_map (const std::string &realm, unsigned short width, unsigned short height)
void create_maptile (const std::string &realmname)
void create_multis_cfg ()
void create_multis_cfg (FILE *multi_idx, FILE *multi_mul, FILE *multis_cfg)
void create_tiles_cfg ()
bool differby_exactly (unsigned char f1, unsigned char f2, unsigned char bits)
void display_flags ()
bool flags_match (unsigned int f1, unsigned int f2, unsigned char bits_compare)
void generate_map ()
short get_lowestadjacentz (unsigned short x, unsigned short y, short z)
bool is_cave_exit (USTRUCT_MAPINFO &mi)
bool is_cave_shadow (USTRUCT_MAPINFO &mi)
bool is_no_draw (USTRUCT_MAPINFO &mi)
bool otherflags_match (unsigned char f1, unsigned char f2, unsigned char bits_exclude)
unsigned char polmap_flags_from_landtile (unsigned short landtile)
void ProcessSolidBlock (unsigned short x_base, unsigned short y_base, MapWriter &mapwriter)
void update_map (const std::string &realm, unsigned short x, unsigned short y)
void write_flags (FILE *fp, unsigned int flags)
void write_multi (FILE *multis_cfg, unsigned id, FILE *multi_mul, unsigned int offset, unsigned int length)

Variables

std::set< unsigned int > BoatTypes
bool cfg_LOS_through_windows = 0
bool cfg_use_no_shoot = 0
unsigned empty = 0
std::set< unsigned int > HouseTypes
std::set< unsigned int > MountTypes
unsigned nonempty = 0
std::set< unsigned int > StairTypes
unsigned total_statics = 0
unsigned with_more_solids = 0

Function Documentation

Definition at line 908 of file uoconvert.cpp.

References Pol::Core::open_uo_file().

+ Here is the call graph for this function:

bool Pol::UOConvert::differby_exactly ( unsigned char  f1,
unsigned char  f2,
unsigned char  bits 
)

Definition at line 208 of file uoconvert.cpp.

bool Pol::UOConvert::flags_match ( unsigned int  f1,
unsigned int  f2,
unsigned char  bits_compare 
)

Definition at line 194 of file uoconvert.cpp.

Referenced by ProcessSolidBlock().

+ Here is the caller graph for this function:

short Pol::UOConvert::get_lowestadjacentz ( unsigned short  x,
unsigned short  y,
short  z 
)

Definition at line 317 of file uoconvert.cpp.

References is_cave_exit(), is_cave_shadow(), is_no_draw(), Pol::Core::safe_getmapinfo(), Pol::Core::uo_map_height, and Pol::Core::uo_map_width.

Referenced by ProcessSolidBlock().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool Pol::UOConvert::is_cave_exit ( USTRUCT_MAPINFO &  mi)

Definition at line 278 of file uoconvert.cpp.

References Pol::Core::USTRUCT_MAPINFO::landtile.

Referenced by get_lowestadjacentz().

+ Here is the caller graph for this function:

bool Pol::UOConvert::is_cave_shadow ( USTRUCT_MAPINFO &  mi)

Definition at line 303 of file uoconvert.cpp.

References Pol::Core::USTRUCT_MAPINFO::landtile.

Referenced by get_lowestadjacentz(), and ProcessSolidBlock().

+ Here is the caller graph for this function:

bool Pol::UOConvert::is_no_draw ( USTRUCT_MAPINFO &  mi)

Definition at line 273 of file uoconvert.cpp.

References Pol::Core::USTRUCT_MAPINFO::landtile.

Referenced by get_lowestadjacentz().

+ Here is the caller graph for this function:

bool Pol::UOConvert::otherflags_match ( unsigned char  f1,
unsigned char  f2,
unsigned char  bits_exclude 
)

Definition at line 201 of file uoconvert.cpp.

unsigned char Pol::UOConvert::polmap_flags_from_landtile ( unsigned short  landtile)

Definition at line 121 of file uoconvert.cpp.

References cfg_LOS_through_windows, cfg_use_no_shoot, Pol::Core::landtile_uoflags(), and Pol::Plib::polflags_from_tileflags().

+ Here is the call graph for this function:

void Pol::UOConvert::ProcessSolidBlock ( unsigned short  x_base,
unsigned short  y_base,
MapWriter &  mapwriter 
)

Definition at line 458 of file uoconvert.cpp.

References Pol::Plib::SOLIDX2_ELEM::addindex, Pol::Plib::MapWriter::AppendSolid(), Pol::Plib::MapWriter::AppendSolidx2Elem(), Pol::Plib::SOLIDX2_ELEM::baseindex, Pol::Plib::FLAG::BLOCKING, Pol::Plib::FLAG::BLOCKSIGHT, cfg_LOS_through_windows, cfg_use_no_shoot, empty, Pol::Core::USTRUCT_TILE::FLAG_BLOCKING, Pol::Core::USTRUCT_TILE::FLAG_FLOOR, Pol::Core::USTRUCT_TILE::FLAG_HALF_HEIGHT, Pol::Core::USTRUCT_TILE::FLAG_HOVEROVER, Pol::Core::USTRUCT_TILE::FLAG_LIQUID, Pol::Core::USTRUCT_TILE::FLAG_NO_SHOOT, Pol::Core::USTRUCT_TILE::FLAG_PLATFORM, Pol::Core::USTRUCT_TILE::FLAG_WALL, Pol::Plib::MapShape::flags, Pol::Core::StaticRec::flags, Pol::Plib::SOLIDS_ELEM::flags, Pol::Plib::MAPCELL::flags, flags_match(), get_lowestadjacentz(), Pol::Plib::FLAG::GRADUAL, Pol::Core::StaticRec::graphic, Pol::Plib::MapShape::height, Pol::Core::StaticRec::height, Pol::Plib::SOLIDS_ELEM::height, INFO_PRINT, is_cave_shadow(), Pol::Core::USTRUCT_MAPINFO::landtile, Pol::Core::landtile_uoflags(), Pol::Plib::FLAG::MORE_SOLIDS, Pol::Plib::FLAG::MOVELAND, Pol::Plib::FLAG::MOVESEA, Pol::Plib::MapWriter::NextSolidIndex(), Pol::Plib::MapWriter::NextSolidx2Offset(), nonempty, Pol::Plib::FLAG::OVERFLIGHT, passert_always, Pol::Plib::polflags_from_tileflags(), Pol::Core::readstatics(), Pol::Core::safe_getmapinfo(), Pol::Plib::MapWriter::SetMapCell(), Pol::Plib::MapWriter::SetSolidx2Offset(), SOLIDX_X_SIZE, SOLIDX_Y_SIZE, total_statics, Pol::Core::uo_map_height, Pol::Core::uo_map_width, with_more_solids, Pol::Plib::MapShape::z, Pol::Core::StaticRec::z, Pol::Plib::SOLIDS_ELEM::z, Pol::Plib::MAPCELL::z, and Pol::Core::USTRUCT_MAPINFO::z.

Referenced by create_map(), and update_map().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Pol::UOConvert::update_map ( const std::string &  realm,
unsigned short  x,
unsigned short  y 
)
void Pol::UOConvert::write_multi ( FILE *  multis_cfg,
unsigned  id,
FILE *  multi_mul,
unsigned int  offset,
unsigned int  length 
)

Variable Documentation

std::set<unsigned int> Pol::UOConvert::BoatTypes

Definition at line 70 of file uoconvert.cpp.

Referenced by write_multi().

std::set<unsigned int> Pol::UOConvert::HouseTypes

Definition at line 69 of file uoconvert.cpp.

Referenced by write_multi().

std::set<unsigned int> Pol::UOConvert::MountTypes

Definition at line 72 of file uoconvert.cpp.

Referenced by create_tiles_cfg().

Definition at line 215 of file uoconvert.cpp.

Referenced by create_map(), ProcessSolidBlock(), and update_map().

std::set<unsigned int> Pol::UOConvert::StairTypes

Definition at line 71 of file uoconvert.cpp.

Referenced by write_multi().

Definition at line 216 of file uoconvert.cpp.

Referenced by create_map(), ProcessSolidBlock(), and update_map().

Definition at line 217 of file uoconvert.cpp.

Referenced by create_map(), ProcessSolidBlock(), and update_map().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines