Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

cTownRegion Class Reference

#include <townregion.h>

List of all members.

Public Methods

 cTownRegion (UI08 region)
virtual ~cTownRegion ()
bool Load (Script *ss)
bool Save (FILE *fp)
bool InitFromScript (int &l)
void CalcNewMayor (void)
long GetMayor (void)
SERIAL GetMayorSerial (void)
bool AddAsTownMember (CChar &toAdd)
bool RemoveTownMember (CChar &toAdd)
long GetRandomGuard (void)
bool IsGuarded (void)
bool CanMark (void)
bool CanGate (void)
bool CanRecall (void)
bool CanCastAggressive (void)
char * GetName (void)
char * GetOwner (void)
weathID GetWeather (void)
int GetGoodSell (UI08 index)
int GetGoodBuy (UI08 index)
int GetGoodRnd1 (UI08 index)
int GetGoodRnd2 (UI08 index)
int GetMidiList (void)
bool DisplayTownMenu (ITEM used, cSocket *sock, SI08 flag=-1)
void DisplayTownMembers (cSocket *sock)
int GetPopulation (void)
bool VoteForMayor (cSocket *sock)
short GetResourceID (void)
bool DonateResource (cSocket *s, int amount)
bool PurchaseGuard (cSocket *sock, char number)
bool ViewBudget (cSocket *sock)
void ViewTaxes (cSocket *s)
bool PeriodicCheck (void)
void DoDamage (SI16 reduction)
WorldType GetAppearance (void)
SI16 GetHealth (void)
bool IsAlliedTown (UI08 townToCheck)
bool MakeAlliedTown (UI08 townToMake)
RACEID GetRace (void)
void SetRace (RACEID newRace)
void TellMembers (SI32 dictEntry,...)
void SendAlliedTowns (cSocket *sock)
void SendEnemyTowns (cSocket *sock)
void ForceEarlyElection (void)
void Possess (UI08 possessorTown)
long GetReserves (void)
long GetTaxes (void)
void SetTaxesLeft (long newValue)
void SetReserves (long newValue)
SI16 GetMinColourSkill (void) const
UI08 GetChanceBigOre (void) const
UI08 GetChanceColourOre (void) const
int GetNumOrePreferences (void) const
const orePrefGetOrePreference (int targValue) const
int GetOreChance (void) const
bool IsDungeon (void) const
bool IsMemberOfTown (CChar *player) const
UI32 NumGuards (void) const

Private Methods

void SendEnemyGump (cSocket *sock)
void SendBasicInfo (cSocket *sock)
void SendPotentialMember (cSocket *sock)
void SendMayorGump (cSocket *sock)
void SendDefaultGump (cSocket *sock)
int FindPositionOf (CChar &toAdd)
bool RemoveCharacter (int position)

Private Attributes

UI08 regionNum
char name [50]
int midilist
char priv
char guardowner [50]
vector< int > guards
vector< orePreforePreferences
vector< townPerstownMember
vector< UI08alliedTowns
long mayorSerial
RACEID race
weathID weather
int goodsell [256]
int goodbuy [256]
int goodrnd1 [256]
int goodrnd2 [256]
int goldReserved
long timeSinceGuardsPaid
long timeSinceTaxedMembers
long timeToElectionClose
long timeToNextPoll
short guardsPurchased
long resourceCollected
short taxedResource
short taxedAmount
WorldType visualAppearance
SI16 health
SI16 minColourSkill
UI08 chanceFindBigOre
UI08 chanceColourOre


Constructor & Destructor Documentation

cTownRegion::cTownRegion UI08   region
 

cTownRegion::~cTownRegion   [virtual]
 


Member Function Documentation

bool cTownRegion::AddAsTownMember CChar &   toAdd
 

void cTownRegion::CalcNewMayor void  
 

bool cTownRegion::CanCastAggressive void  
 

bool cTownRegion::CanGate void  
 

bool cTownRegion::CanMark void  
 

bool cTownRegion::CanRecall void  
 

void cTownRegion::DisplayTownMembers cSocket *   sock
 

bool cTownRegion::DisplayTownMenu ITEM   used,
cSocket *   sock,
SI08   flag = -1
 

void cTownRegion::DoDamage SI16   reduction
 

bool cTownRegion::DonateResource cSocket *   s,
int   amount
 

int cTownRegion::FindPositionOf CChar &   toAdd [private]
 

void cTownRegion::ForceEarlyElection void  
 

WorldType cTownRegion::GetAppearance void  
 

UI08 cTownRegion::GetChanceBigOre void   const
 

UI08 cTownRegion::GetChanceColourOre void   const
 

int cTownRegion::GetGoodBuy UI08   index
 

int cTownRegion::GetGoodRnd1 UI08   index
 

int cTownRegion::GetGoodRnd2 UI08   index
 

int cTownRegion::GetGoodSell UI08   index
 

SI16 cTownRegion::GetHealth void  
 

long cTownRegion::GetMayor void  
 

SERIAL cTownRegion::GetMayorSerial void  
 

int cTownRegion::GetMidiList void  
 

SI16 cTownRegion::GetMinColourSkill void   const
 

char * cTownRegion::GetName void  
 

int cTownRegion::GetNumOrePreferences void   const
 

int cTownRegion::GetOreChance void   const
 

const orePref * cTownRegion::GetOrePreference int   targValue const
 

char * cTownRegion::GetOwner void  
 

int cTownRegion::GetPopulation void  
 

RACEID cTownRegion::GetRace void  
 

long cTownRegion::GetRandomGuard void  
 

long cTownRegion::GetReserves void  
 

short int cTownRegion::GetResourceID void  
 

long cTownRegion::GetTaxes void  
 

weathID cTownRegion::GetWeather void  
 

bool cTownRegion::InitFromScript int &   l
 

bool cTownRegion::IsAlliedTown UI08   townToCheck
 

bool cTownRegion::IsDungeon void   const
 

bool cTownRegion::IsGuarded void  
 

bool cTownRegion::IsMemberOfTown CChar *   player const
 

bool cTownRegion::Load Script *   ss
 

bool cTownRegion::MakeAlliedTown UI08   townToMake
 

UI32 cTownRegion::NumGuards void   const
 

bool cTownRegion::PeriodicCheck void  
 

void cTownRegion::Possess UI08   possessorTown
 

bool cTownRegion::PurchaseGuard cSocket *   sock,
char   number
 

bool cTownRegion::RemoveCharacter int   position [private]
 

bool cTownRegion::RemoveTownMember CChar &   toAdd
 

bool cTownRegion::Save FILE *   fp
 

void cTownRegion::SendAlliedTowns cSocket *   sock
 

void cTownRegion::SendBasicInfo cSocket *   sock [private]
 

void cTownRegion::SendDefaultGump cSocket *   sock [private]
 

void cTownRegion::SendEnemyGump cSocket *   sock [private]
 

void cTownRegion::SendEnemyTowns cSocket *   sock
 

void cTownRegion::SendMayorGump cSocket *   sock [private]
 

void cTownRegion::SendPotentialMember cSocket *   sock [private]
 

void cTownRegion::SetRace RACEID   newRace
 

void cTownRegion::SetReserves long   newValue
 

void cTownRegion::SetTaxesLeft long   newValue
 

void cTownRegion::TellMembers SI32   dictEntry,
...  
 

bool cTownRegion::ViewBudget cSocket *   sock
 

void cTownRegion::ViewTaxes cSocket *   sock
 

bool cTownRegion::VoteForMayor cSocket *   sock
 


Member Data Documentation

vector< UI08 > cTownRegion::alliedTowns [private]
 

UI08 cTownRegion::chanceColourOre [private]
 

UI08 cTownRegion::chanceFindBigOre [private]
 

int cTownRegion::goldReserved [private]
 

int cTownRegion::goodbuy[256] [private]
 

int cTownRegion::goodrnd1[256] [private]
 

int cTownRegion::goodrnd2[256] [private]
 

int cTownRegion::goodsell[256] [private]
 

char cTownRegion::guardowner[50] [private]
 

vector< int > cTownRegion::guards [private]
 

short cTownRegion::guardsPurchased [private]
 

SI16 cTownRegion::health [private]
 

long cTownRegion::mayorSerial [private]
 

int cTownRegion::midilist [private]
 

SI16 cTownRegion::minColourSkill [private]
 

char cTownRegion::name[50] [private]
 

vector< orePref > cTownRegion::orePreferences [private]
 

char cTownRegion::priv [private]
 

RACEID cTownRegion::race [private]
 

UI08 cTownRegion::regionNum [private]
 

long cTownRegion::resourceCollected [private]
 

short cTownRegion::taxedAmount [private]
 

short cTownRegion::taxedResource [private]
 

long cTownRegion::timeSinceGuardsPaid [private]
 

long cTownRegion::timeSinceTaxedMembers [private]
 

long cTownRegion::timeToElectionClose [private]
 

long cTownRegion::timeToNextPoll [private]
 

vector< townPers > cTownRegion::townMember [private]
 

WorldType cTownRegion::visualAppearance [private]
 

weathID cTownRegion::weather [private]
 


The documentation for this class was generated from the following files:
Generated at Sun Sep 16 22:45:41 2001 for UOX3 by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001