Pol  Revision:e50bd96
Pol::UoConvert Namespace Reference

Classes

class  StaticsByZ
 
class  UoConvertMain
 

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)
 
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

void Pol::UoConvert::create_multis_cfg ( )

Definition at line 901 of file UoConvertMain.cpp.

References Pol::Core::open_uo_file().

Referenced by Pol::UoConvert::UoConvertMain::main().

+ Here is the call graph for this function:

void Pol::UoConvert::create_multis_cfg ( FILE *  multi_idx,
FILE *  multi_mul,
FILE *  multis_cfg 
)
bool Pol::UoConvert::differby_exactly ( unsigned char  f1,
unsigned char  f2,
unsigned char  bits 
)

Definition at line 214 of file UoConvertMain.cpp.

References ProcessSolidBlock().

+ Here is the call graph for this function:

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

Definition at line 204 of file UoConvertMain.cpp.

Referenced by ProcessSolidBlock().

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

Definition at line 308 of file UoConvertMain.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:

bool Pol::UoConvert::is_cave_exit ( USTRUCT_MAPINFO mi)

Definition at line 288 of file UoConvertMain.cpp.

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

Referenced by get_lowestadjacentz().

bool Pol::UoConvert::is_cave_shadow ( USTRUCT_MAPINFO mi)

Definition at line 299 of file UoConvertMain.cpp.

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

Referenced by get_lowestadjacentz(), and ProcessSolidBlock().

bool Pol::UoConvert::is_no_draw ( USTRUCT_MAPINFO mi)

Definition at line 283 of file UoConvertMain.cpp.

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

Referenced by get_lowestadjacentz().

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

Definition at line 209 of file UoConvertMain.cpp.

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

Definition at line 132 of file UoConvertMain.cpp.

References 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 449 of file UoConvertMain.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, 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, 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(), differby_exactly(), and update_map().

+ Here is the call 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 79 of file UoConvertMain.cpp.

Referenced by Pol::UoConvert::UoConvertMain::main().

bool Pol::UoConvert::cfg_LOS_through_windows = 0

Definition at line 76 of file UoConvertMain.cpp.

Referenced by Pol::UoConvert::UoConvertMain::main().

bool Pol::UoConvert::cfg_use_no_shoot = 0

Definition at line 75 of file UoConvertMain.cpp.

Referenced by Pol::UoConvert::UoConvertMain::main().

unsigned Pol::UoConvert::empty = 0

Definition at line 221 of file UoConvertMain.cpp.

Referenced by Pol::Plib::MapWriter::CreateBaseDat(), and ProcessSolidBlock().

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

Definition at line 78 of file UoConvertMain.cpp.

Referenced by Pol::UoConvert::UoConvertMain::main().

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

Definition at line 81 of file UoConvertMain.cpp.

Referenced by Pol::UoConvert::UoConvertMain::main().

unsigned Pol::UoConvert::nonempty = 0

Definition at line 221 of file UoConvertMain.cpp.

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

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

Definition at line 80 of file UoConvertMain.cpp.

Referenced by Pol::UoConvert::UoConvertMain::main().

unsigned Pol::UoConvert::total_statics = 0

Definition at line 222 of file UoConvertMain.cpp.

unsigned Pol::UoConvert::with_more_solids = 0

Definition at line 223 of file UoConvertMain.cpp.

Referenced by ProcessSolidBlock().