Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

cHouses Class Reference

#include <house.h>

List of all members.

Static Public Methods

cHousefindHouse (Location loc)
cHousefindHouse (int x, int y)
cHousecHouses::findHouse (SERIAL houseSerial)
std::map< SERIAL, P_HOUSE
>::iterator 
findHouses (SERIAL owner)
void killkeys (SERIAL serial)
void buildhouse (P_CHAR builder, P_ITEM housedeed)
 Build an house Create an image of the house at the mouse pointer, allowing the char to drag it to the right position.

void target_buildhouse (NXWCLIENT ps, P_TARGET t)
 Build an house.

void target_houseOwner (NXWCLIENT ps, P_TARGET t)
void target_houseEject (NXWCLIENT ps, P_TARGET t)
void target_houseBan (NXWCLIENT ps, P_TARGET t)
void target_houseFriend (NXWCLIENT ps, P_TARGET t)
void target_houseUnlist (NXWCLIENT ps, P_TARGET t)
void target_houseLockdown (NXWCLIENT ps, P_TARGET t)
void target_houseRelease (NXWCLIENT ps, P_TARGET t)
void target_houseSecureDown (NXWCLIENT ps, P_TARGET t)
LOGICAL house_speech (P_CHAR pc, NXWSOCKET socket, std::string &talk)
int check_house_decay ()
 does all the work for house decay

void cHouses::Delete (SERIAL houseserial)
void cHouses::makeKeys (P_HOUSE phouse, P_CHAR pc)
void cHouses::safeoldsave ()
bool cHouses::save ()
bool cHouses::load ()
void cHouses::addHouseItem (int housenumber, int itemnumber)
UI32VECTOR getHouseItems (int housenumber)
void cHouses::addHouse (P_HOUSE newHouse)
void cHouses::makeHouseItems (int housenumber, P_CHAR owner, P_ITEM multi)
std::map< SERIAL, P_HOUSEcHouses::findOwnedHouses (SERIAL owner)
void cHouses::archive ()

Static Private Attributes

std::map< SERIAL, P_HOUSEhouses
std::map< int, UI32VECTORhouseitems


Member Function Documentation

void cHouses::buildhouse P_CHAR    builder,
P_ITEM    housedeed
[static]
 

Build an house Create an image of the house at the mouse pointer, allowing the char to drag it to the right position.

Author:
Wintermute
Parameters:
builder, the  char, who is building the house
housedeed, the  housedeed that is used to build

int cHouses::check_house_decay   [static]
 

does all the work for house decay

checks all items if they are houses. if so, check its time stamp. if its too old remove it

Todo:
need rewrite, now is commented out...

void cHouses::cHouses::addHouse P_HOUSE    newHouse [static]
 

void cHouses::cHouses::addHouseItem int    housenumber,
int    itemnumber
[static]
 

void cHouses::cHouses::archive   [static]
 

void cHouses::cHouses::Delete SERIAL    houseserial [static]
 

cHouse* cHouses::cHouses::findHouse SERIAL    houseSerial [static]
 

std::map< SERIAL, P_HOUSE > cHouses::cHouses::findOwnedHouses SERIAL    owner [static]
 

bool cHouses::cHouses::load   [static]
 

void cHouses::cHouses::makeHouseItems int    housenumber,
P_CHAR    owner,
P_ITEM    multi
[static]
 

void cHouses::cHouses::makeKeys P_HOUSE    phouse,
P_CHAR    pc
[static]
 

void cHouses::cHouses::safeoldsave   [static]
 

bool cHouses::cHouses::save   [static]
 

cHouse * cHouses::findHouse int    x,
int    y
[static]
 

cHouse * cHouses::findHouse Location    loc [static]
 

std::map< SERIAL, P_HOUSE >::iterator cHouses::findHouses SERIAL    owner [static]
 

UI32VECTOR cHouses::getHouseItems int    housenumber [static]
 

LOGICAL cHouses::house_speech P_CHAR    pc,
NXWSOCKET    socket,
std::string &    talk
[static]
 

void cHouses::killkeys SERIAL    serial [static]
 

Author:
Luxor
Note:
This function use a BAD method based on cAllObjects, will be substituted with a map system.

void cHouses::target_buildhouse NXWCLIENT    ps,
P_TARGET    t
[static]
 

Build an house.

Author:
Wintermute, original code by Zippy Triggered by double clicking a deed-> the deed's morex is read for the house section in house.cpp. Extra items can be added using HOUSE ITEM, (this includes all doors!) and locked "LOCK" Space around the house with SPACEX/Y and CHAR offset CHARX/Y/Z

void cHouses::target_houseBan NXWCLIENT    ps,
P_TARGET    t
[static]
 

void cHouses::target_houseEject NXWCLIENT    ps,
P_TARGET    t
[static]
 

void cHouses::target_houseFriend NXWCLIENT    ps,
P_TARGET    t
[static]
 

void cHouses::target_houseLockdown NXWCLIENT    ps,
P_TARGET    t
[static]
 

void cHouses::target_houseOwner NXWCLIENT    ps,
P_TARGET    t
[static]
 

void cHouses::target_houseRelease NXWCLIENT    ps,
P_TARGET    t
[static]
 

void cHouses::target_houseSecureDown NXWCLIENT    ps,
P_TARGET    t
[static]
 

void cHouses::target_houseUnlist NXWCLIENT    ps,
P_TARGET    t
[static]
 


Member Data Documentation

std::map< int, UI32VECTOR > cHouses::houseitems [static, private]
 

std::map< SERIAL, P_HOUSE > cHouses::houses [static, private]
 


The documentation for this class was generated from the following files: SourceForge.net Logo