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

cMulti Class Reference

#include <house.h>

Inheritance diagram for cMulti:

cBoat cHouse List of all members.

Public Methods

 cMulti ()
SERIAL getSerial ()
void setSerial (SERIAL itemLink)
SERIAL getOwner ()
void setOwner (SERIAL newOwner)
SI32 getKeycode ()
void setKeycode (SI32 keycode)
void getCorners (SI32 &x1, SI32 &x2, SI32 &y1, SI32 &y2)
void setCorners (SI32 x1, SI32 x2, SI32 y1, SI32 y2)
void getCharPos (int &x, int &y, int &z)
void setCharPos (int x, int y, int z)
int getUpperYRange ()
int getLowerYRange ()
int getLeftXRange ()
int getRightXRange ()
void changeLocks ()
SI32 getDeed ()
void setDeed (SI32 newID)
void createMulti (UI32 multinumber, P_ITEM multiItem)
 Build an house.

bool isRealMulti ()
bool increaseLockedItems (unsigned int amount=1)
bool decreaseLockedItems (unsigned int amount=1)
void setLockedItems (unsigned int amount)
unsigned int getLockedItems ()
unsigned int getMaxLockedItems ()
void setMaxLockedItems (unsigned int amount)
bool increaseSecuredItems (unsigned int amount=1)
bool decreaseSecuredItems (unsigned int amount=1)
void setSecuredItems (unsigned int amount)
unsigned int getSecuredItems ()
unsigned int getMaxSecuredItems ()
void setMaxSecuredItems (unsigned int amount)

Static Public Methods

void makeKeys (cMulti *pMulti, P_CHAR pc)
void cMulti::target_buildmulti (NXWCLIENT ps, P_TARGET t)
void cMulti::buildmulti (P_CHAR builder, P_ITEM deed)

Protected Attributes

SERIAL serial
SERIAL owner
SI32 keycode
LOGICAL norealmulti
LOGICAL nokey
LOGICAL boat
SI08 spacex1
SI08 spacey1
SI08 spacex2
SI08 spacey2
SI32 char_x
SI32 char_y
SI32 char_z
SI32 deed
SI16 lockedItems
SI16 securedItems
SI16 maxLockedItems
SI16 maxSecuredItems

Constructor & Destructor Documentation

cMulti::cMulti  
 


Member Function Documentation

void cMulti::changeLocks  
 

void cMulti::cMulti::buildmulti P_CHAR    builder,
P_ITEM    deed
[static]
 

void cMulti::cMulti::target_buildmulti NXWCLIENT    ps,
P_TARGET    t
[static]
 

void cMulti::createMulti UI32    multiNumber,
P_ITEM    multiItem
 

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

bool cMulti::decreaseLockedItems unsigned int    amount = 1
 

bool cMulti::decreaseSecuredItems unsigned int    amount = 1
 

void cMulti::getCharPos int &    x,
int &    y,
int &    z
 

void cMulti::getCorners SI32   x1,
SI32   x2,
SI32   y1,
SI32   y2
 

SI32 cMulti::getDeed  
 

SI32 cMulti::getKeycode  
 

int cMulti::getLeftXRange  
 

unsigned int cMulti::getLockedItems  
 

int cMulti::getLowerYRange  
 

unsigned int cMulti::getMaxLockedItems  
 

unsigned int cMulti::getMaxSecuredItems  
 

SERIAL cMulti::getOwner  
 

int cMulti::getRightXRange  
 

unsigned int cMulti::getSecuredItems  
 

SERIAL cMulti::getSerial  
 

int cMulti::getUpperYRange  
 

bool cMulti::increaseLockedItems unsigned int    amount = 1
 

bool cMulti::increaseSecuredItems unsigned int    amount = 1
 

bool cMulti::isRealMulti  
 

void cMulti::makeKeys cMulti *    pMulti,
P_CHAR    pc
[static]
 

void cMulti::setCharPos int    x,
int    y,
int    z
 

void cMulti::setCorners SI32    x1,
SI32    x2,
SI32    y1,
SI32    y2
 

void cMulti::setDeed SI32    newID
 

void cMulti::setKeycode SI32    keycode
 

void cMulti::setLockedItems unsigned int    amount
 

void cMulti::setMaxLockedItems unsigned int    amount
 

void cMulti::setMaxSecuredItems unsigned int    amount
 

void cMulti::setOwner SERIAL    newOwner
 

void cMulti::setSecuredItems unsigned int    amount
 

void cMulti::setSerial SERIAL    itemLink
 


Member Data Documentation

LOGICAL cMulti::boat [protected]
 

SI32 cMulti::char_x [protected]
 

SI32 cMulti::char_y [protected]
 

SI32 cMulti::char_z [protected]
 

SI32 cMulti::deed [protected]
 

SI32 cMulti::keycode [protected]
 

SI16 cMulti::lockedItems [protected]
 

SI16 cMulti::maxLockedItems [protected]
 

SI16 cMulti::maxSecuredItems [protected]
 

LOGICAL cMulti::nokey [protected]
 

LOGICAL cMulti::norealmulti [protected]
 

SERIAL cMulti::owner [protected]
 

SI16 cMulti::securedItems [protected]
 

SERIAL cMulti::serial [protected]
 

SI08 cMulti::spacex1 [protected]
 

SI08 cMulti::spacex2 [protected]
 

SI08 cMulti::spacey1 [protected]
 

SI08 cMulti::spacey2 [protected]
 


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