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

cHouse Class Reference

#include <house.h>

Inheritance diagram for cHouse:

cMulti List of all members.

Public Methods

 cHouse ()
void deedhouse (NXWSOCKET s, P_ITEM pi)
void deedhouse (P_CHAR owner)
 Turn a house into a deed if posible.

bool isInsideHouse (P_ITEM pi)
bool isInsideHouse (P_CHAR pc)
bool isInsideHouse (Location where)
bool isInsideHouse (int x, int y, int z)
bool inHouse (P_ITEM pi)
bool inHouse (P_CHAR pc)
bool inHouse (Location where)
bool inHouse (int x, int y)
void remove ()
bool isPublicHouse ()
void setPublicState (bool state)
void togglePublicState ()
std::vector< SERIAL >::iterator getHouseFriends ()
std::vector< SERIAL >::iterator getHouseCoOwners ()
std::vector< SERIAL >::iterator getHouseBans ()
void addFriend (P_CHAR newfriend)
void removeFriend (P_CHAR newfriend)
bool isFriend (P_CHAR pc)
 Checks if somebody is on the friends list.

std::vector< SERIALgetHouseFriendsList ()
void addCoOwner (P_CHAR newCoOwner)
void removeCoOwner (P_CHAR newCoOwner)
bool isCoOwner (P_CHAR pc)
 Checks if somebody is on the friends list.

std::vector< SERIALgetHouseCoOwnerList ()
void addBan (P_CHAR newBanned)
void removeBan (P_CHAR newBanned)
bool isBanned (P_CHAR pc)
 Checks if somebody is on the friends list.

std::vector< SERIALgetHouseBannedList ()
SI32 getCurrentZPosition (P_CHAR pc)
void createHouse (UI32 houseNumber)
void transfer (SERIAL newOwner)
void save (ofstream *output)
void load (cStringFile &input)

Private Attributes

LOGICAL publicHouse
std::vector< SERIALfriends
std::vector< SERIALcoowners
std::vector< SERIALbanned

Constructor & Destructor Documentation

cHouse::cHouse  
 


Member Function Documentation

void cHouse::addBan P_CHAR    newBanned
 

void cHouse::addCoOwner P_CHAR    newCoOwner
 

void cHouse::addFriend P_CHAR    newfriend
 

void cHouse::createHouse UI32    houseNumber
 

void cHouse::deedhouse P_CHAR    deedMaker
 

Turn a house into a deed if posible.

Author:
Wintermute, original code CrackerJack
Parameters:
P_CHAR  deedMaker, the player who is deeding the house

void cHouse::deedhouse NXWSOCKET    s,
P_ITEM    pi
 

SI32 cHouse::getCurrentZPosition P_CHAR    pc
 

std::vector< SERIAL > cHouse::getHouseBannedList  
 

std::vector< SERIAL >::iterator cHouse::getHouseBans  
 

std::vector< SERIAL > cHouse::getHouseCoOwnerList  
 

std::vector< SERIAL >::iterator cHouse::getHouseCoOwners  
 

std::vector< SERIAL >::iterator cHouse::getHouseFriends  
 

std::vector< SERIAL > cHouse::getHouseFriendsList  
 

bool cHouse::inHouse int    x,
int    y
 

bool cHouse::inHouse Location    where
 

bool cHouse::inHouse P_CHAR    pc
 

bool cHouse::inHouse P_ITEM    pi
 

bool cHouse::isBanned P_CHAR    pc
 

Checks if somebody is on the friends list.

Parameters:
pc  the char to be tested

bool cHouse::isCoOwner P_CHAR    pc
 

Checks if somebody is on the friends list.

Parameters:
pc  the char to be tested

bool cHouse::isFriend P_CHAR    pc
 

Checks if somebody is on the friends list.

Parameters:
pc  the char to be tested

bool cHouse::isInsideHouse int    x,
int    y,
int    z
 

bool cHouse::isInsideHouse Location    where
 

bool cHouse::isInsideHouse P_CHAR    pc
 

bool cHouse::isInsideHouse P_ITEM    pi
 

bool cHouse::isPublicHouse  
 

void cHouse::load cStringFile   input
 

void cHouse::remove  
 

void cHouse::removeBan P_CHAR    newBanned
 

void cHouse::removeCoOwner P_CHAR    newCoOwner
 

void cHouse::removeFriend P_CHAR    newfriend
 

void cHouse::save ofstream *    output
 

void cHouse::setPublicState bool    state
 

void cHouse::togglePublicState  
 

void cHouse::transfer SERIAL    newOwner
 


Member Data Documentation

std::vector<SERIAL> cHouse::banned [private]
 

std::vector<SERIAL> cHouse::coowners [private]
 

std::vector<SERIAL> cHouse::friends [private]
 

LOGICAL cHouse::publicHouse [private]
 


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