Pol  Revision:e50bd96
Pol::Multi Namespace Reference

Classes

struct  BoatShape
 
struct  CUSTOM_HOUSE_ELEMENT
 
class  CustomHouseDesign
 
class  CustomHouseElements
 
struct  MULTI_ELEM
 
class  MultiDef
 
class  MultiDefBuffer
 
class  UBoat
 
class  UHouse
 
class  UMulti
 
class  UPlank
 

Typedefs

typedef std::vector< std::vector< std::list< CUSTOM_HOUSE_ELEMENT > > > HouseFloor
 
typedef std::vector< std::list< CUSTOM_HOUSE_ELEMENT > > HouseFloorRow
 
typedef std::list< CUSTOM_HOUSE_ELEMENTHouseFloorZColumn
 
typedef std::list< Items::Item * > ItemList
 
typedef std::list< Mobile::Character * > MobileList
 
typedef std::map< u16, MultiDef * > MultiDefs
 

Enumerations

enum  { HOUSE_DESIGN_CURRENT = 1, HOUSE_DESIGN_WORKING }
 
enum  BOAT_COMPONENT {
  COMPONENT_TILLERMAN = 0, COMPONENT_PORT_PLANK = 1, COMPONENT_STARBOARD_PLANK = 2, COMPONENT_HOLD = 3,
  COMPONENT_ROPE = 4, COMPONENT_WHEEL = 5, COMPONENT_HULL = 6, COMPONENT_TILLER = 7,
  COMPONENT_RUDDER = 8, COMPONENT_SAILS = 9, COMPONENT_STORAGE = 10, COMPONENT_WEAPONSLOT = 11,
  COMPONENT_ALL = 12
}
 

Functions

bool BoatShapeExists (unsigned short)
 
bool BoatShapeExists (u16 multiid)
 
void clean_boatshapes ()
 
void CustomHousesAdd (Core::PKTBI_D7 *msg)
 
void CustomHousesAddMulti (Core::PKTBI_D7 *msg)
 
void CustomHousesBackup (Core::PKTBI_D7 *msg)
 
void CustomHousesClear (Core::PKTBI_D7 *msg)
 
void CustomHousesCommit (Core::PKTBI_D7 *msg)
 
void CustomHousesErase (Core::PKTBI_D7 *msg)
 
void CustomHousesQuit (Core::PKTBI_D7 *msg)
 
void CustomHousesRestore (Core::PKTBI_D7 *msg)
 
void CustomHousesRevert (Core::PKTBI_D7 *msg)
 
void CustomHousesRoofRemove (Core::PKTBI_D7 *msg)
 
void CustomHousesRoofSelect (Core::PKTBI_D7 *msg)
 
void CustomHousesSelectFloor (Core::PKTBI_D7 *msg)
 
void CustomHousesSendFull (UHouse *house, Network::Client *client, int design)
 
void CustomHousesSendFullToInRange (UHouse *house, int design, int range)
 
void CustomHousesSendShort (UHouse *house, Network::Client *client)
 
void CustomHousesSynch (Core::PKTBI_D7 *msg)
 
void CustomHouseStopEditing (Mobile::Character *chr, UHouse *house)
 
Bscript::BObjectImpdestroy_boat (UBoat *boat)
 
Bscript::BObjectImpdestroy_house (UHouse *house)
 
unsigned int get_component_objtype (unsigned char type)
 
bool isboat (u32 objtype)
 
bool ishouse (u32 objtype)
 
void load_special_storedconfig (const std::string &cfgname)
 
void move_to_ground (Items::Item *item)
 
void move_to_ground (Mobile::Character *chr)
 
const MultiDefMultiDefByMultiID (u16 multiid)
 
bool MultiDefByMultiIDExists (u16 multiid)
 
bool multis_exist_in (unsigned short mywest, unsigned short mynorth, unsigned short myeast, unsigned short mysouth, Realms::Realm *realm)
 
bool objects_exist_in (unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2, Realms::Realm *realm)
 
void read_boat_cfg ()
 
void read_multidefs ()
 
bool statics_cause_problems (unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2, s8 z, int, Realms::Realm *realm)
 
void unpause_paused ()
 

Variables

int BlockIDs []
 
std::vector< Network::Client * > boat_sent_to
 
const int CRMULTI_FACING_EAST = 0x0100
 
const int CRMULTI_FACING_MASK = 0x0300
 
const int CRMULTI_FACING_NORTH = 0x0000
 
const int CRMULTI_FACING_SHIFT = 8
 
const int CRMULTI_FACING_SOUTH = 0x0200
 
const int CRMULTI_FACING_WEST = 0x0300
 
const int CRMULTI_IGNORE_FLATNESS = 0x0004
 
const int CRMULTI_IGNORE_MULTIS = 0x0001
 
const int CRMULTI_IGNORE_OBJECTS = 0x0002
 
MultiDefBuffer multidef_buffer
 
int StairIDs []
 
int StairSeqs []
 

Typedef Documentation

typedef std::vector<std::vector<std::list<CUSTOM_HOUSE_ELEMENT> > > Pol::Multi::HouseFloor

Definition at line 75 of file customhouses.h.

typedef std::vector<std::list<CUSTOM_HOUSE_ELEMENT> > Pol::Multi::HouseFloorRow

Definition at line 76 of file customhouses.h.

Definition at line 77 of file customhouses.h.

typedef std::list<Items::Item*> Pol::Multi::ItemList

Definition at line 22 of file house.h.

Definition at line 23 of file house.h.

typedef std::map<u16, MultiDef*> Pol::Multi::MultiDefs

Definition at line 20 of file multidefs.h.

Enumeration Type Documentation

anonymous enum
Enumerator
HOUSE_DESIGN_CURRENT 
HOUSE_DESIGN_WORKING 

Definition at line 61 of file customhouses.h.

Enumerator
COMPONENT_TILLERMAN 
COMPONENT_PORT_PLANK 
COMPONENT_STARBOARD_PLANK 
COMPONENT_HOLD 
COMPONENT_ROPE 
COMPONENT_WHEEL 
COMPONENT_HULL 
COMPONENT_TILLER 
COMPONENT_RUDDER 
COMPONENT_SAILS 
COMPONENT_STORAGE 
COMPONENT_WEAPONSLOT 
COMPONENT_ALL 

Definition at line 200 of file boat.h.

Function Documentation

bool Pol::Multi::BoatShapeExists ( unsigned  short)

Definition at line 32 of file UoToolMain.cpp.

bool Pol::Multi::BoatShapeExists ( u16  multiid)

Definition at line 285 of file boat.cpp.

References Pol::Core::GameState::boatshapes, and Pol::Core::gamestate.

Referenced by Pol::Multi::MultiDef::MultiDef().

void Pol::Multi::clean_boatshapes ( )

Definition at line 273 of file boat.cpp.

References Pol::Core::GameState::boatshapes, and Pol::Core::gamestate.

Referenced by Pol::Core::GameState::cleanup_vars().

void Pol::Multi::CustomHousesBackup ( Core::PKTBI_D7 msg)
void Pol::Multi::CustomHousesQuit ( Core::PKTBI_D7 msg)
void Pol::Multi::CustomHousesSendFullToInRange ( UHouse house,
int  design,
int  range 
)
void Pol::Multi::CustomHousesSendShort ( UHouse house,
Network::Client client 
)

Definition at line 1054 of file customhouses.cpp.

References Pol::Multi::UHouse::revision, Pol::Network::PktHelper::PacketOut< T >::Send(), and Pol::Core::UObject::serial_ext.

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

+ Here is the call graph for this function:

void Pol::Multi::CustomHousesSynch ( Core::PKTBI_D7 msg)
bool Pol::Multi::isboat ( u32  objtype)

Definition at line 27 of file multicr.cpp.

References Pol::Items::ItemDesc::BOATDESC, Pol::Items::find_itemdesc(), and Pol::Items::ItemDesc::type.

+ Here is the call graph for this function:

bool Pol::Multi::ishouse ( u32  objtype)

Definition at line 32 of file multicr.cpp.

References Pol::Items::find_itemdesc(), Pol::Items::ItemDesc::HOUSEDESC, and Pol::Items::ItemDesc::type.

+ Here is the call graph for this function:

void Pol::Multi::load_special_storedconfig ( const std::string &  cfgname)
void Pol::Multi::move_to_ground ( Mobile::Character chr)

Definition at line 895 of file house.cpp.

References Pol::Core::move_character_to(), Pol::Core::MOVEITEM_FORCELOCATION, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.

+ Here is the call graph for this function:

bool Pol::Multi::multis_exist_in ( unsigned short  mywest,
unsigned short  mynorth,
unsigned short  myeast,
unsigned short  mysouth,
Realms::Realm realm 
)
bool Pol::Multi::objects_exist_in ( unsigned short  x1,
unsigned short  y1,
unsigned short  x2,
unsigned short  y2,
Realms::Realm realm 
)
void Pol::Multi::read_boat_cfg ( void  )
bool Pol::Multi::statics_cause_problems ( unsigned short  x1,
unsigned short  y1,
unsigned short  x2,
unsigned short  y2,
s8  z,
int  ,
Realms::Realm realm 
)
void Pol::Multi::unpause_paused ( )

Variable Documentation

int Pol::Multi::BlockIDs[]
Initial value:
= {
0x3EE,
0x709,
0x71E,
0x721,
0x738,
0x750,
0x76C,
0x788,
0x7A3,
0x7BA,
0x35D2,
0x3609,
0x4317,
0x4318
}

Definition at line 15 of file customhousehelp.cpp.

Referenced by Pol::Multi::CustomHouseDesign::IsStairBlock().

std::vector<Network::Client*> Pol::Multi::boat_sent_to

Definition at line 74 of file boat.cpp.

const int Pol::Multi::CRMULTI_FACING_EAST = 0x0100

Definition at line 49 of file multi.h.

const int Pol::Multi::CRMULTI_FACING_MASK = 0x0300
const int Pol::Multi::CRMULTI_FACING_NORTH = 0x0000

Definition at line 48 of file multi.h.

Referenced by Pol::Testing::create_test_environment().

const int Pol::Multi::CRMULTI_FACING_SHIFT = 8
const int Pol::Multi::CRMULTI_FACING_SOUTH = 0x0200

Definition at line 50 of file multi.h.

const int Pol::Multi::CRMULTI_FACING_WEST = 0x0300

Definition at line 51 of file multi.h.

Referenced by Pol::Testing::create_test_environment().

const int Pol::Multi::CRMULTI_IGNORE_FLATNESS = 0x0004

Definition at line 47 of file multi.h.

Referenced by Pol::Multi::UHouse::scripted_create().

const int Pol::Multi::CRMULTI_IGNORE_MULTIS = 0x0001

Definition at line 45 of file multi.h.

Referenced by Pol::Multi::UHouse::scripted_create().

const int Pol::Multi::CRMULTI_IGNORE_OBJECTS = 0x0002

Definition at line 46 of file multi.h.

Referenced by Pol::Multi::UHouse::scripted_create().

int Pol::Multi::StairIDs[]
Initial value:
= {
0x71F, 0x736, 0x737,
0x749,
0x7BB, 0x7BC,
0x35D4, 0x35D3, 0x35D6,
0x35D5,
0x360B, 0x360A, 0x360D,
0x360C,
0x4360, 0x435E, 0x435F,
0x4361,
0x435C, 0x435A, 0x435B,
0x435C,
0x4364, 0x4362, 0x4363,
0x4365
}

Definition at line 43 of file customhousehelp.cpp.

Referenced by Pol::Multi::CustomHouseDesign::IsStair().

int Pol::Multi::StairSeqs[]
Initial value:
= {
0x3EF,
0x70A,
0x722,
0x739,
0x751,
0x76D,
0x789,
0x7A4
}

Definition at line 32 of file customhousehelp.cpp.

Referenced by Pol::Multi::CustomHouseDesign::IsStair().