Public Member Functions | Public Attributes

FactionBase Class Reference

Inherits IFactionBase.

List of all members.

Public Member Functions

 FactionBase (uint location_id)
 FactionBase (uint faction_id, const string& name, uint location_id)
uint get_FactionId () const
 Id of the faction owning the base.
const stringget_Name () const
 Name of the base, unique within faction.
uint get_LocationId () const
 Id of the underlying location.
uint get_Id () const
 Unique id of the base.
void Show (Critter& cr) const
 Shows the underlying location to the critter.
void Hide (Critter& cr) const
 Hides the underlying location from critter.
bool IsRankAllowed (int rank) const
 Checks if given rank (within owning faction) is allowed to see this base.
void AllowRank (int rank, bool allow)
 Allows/disallows rank to see this base.
bool IsStatusAllowed (int status) const
 Checks if players that are filled in owning faction database and have given status are allowed to see the base.
void AllowStatus (int status, bool allow)
 Allows/disallows players with given status to see this base.
void Remove ()
 Removes all additional data associated with this IFactionBase object.

Public Attributes

uint factionId
uint locationId
string name

Constructor & Destructor Documentation

FactionBase ( uint  location_id  ) 
FactionBase ( uint  faction_id,
const string name,
uint  location_id 
)

Member Function Documentation

uint get_FactionId (  )  const

Id of the faction owning the base.

Implements IFactionBase.

const string& get_Name (  )  const

Name of the base, unique within faction.

Implements IFactionBase.

uint get_LocationId (  )  const

Id of the underlying location.

Implements IFactionBase.

uint get_Id (  )  const

Unique id of the base.

Implements IFactionBase.

void Show ( Critter cr  )  const

Shows the underlying location to the critter.

Implements IFactionBase.

void Hide ( Critter cr  )  const

Hides the underlying location from critter.

Implements IFactionBase.

bool IsRankAllowed ( int  rank  )  const

Checks if given rank (within owning faction) is allowed to see this base.

Implements IFactionBase.

void AllowRank ( int  rank,
bool  allow 
)

Allows/disallows rank to see this base.

Implements IFactionBase.

bool IsStatusAllowed ( int  status  )  const

Checks if players that are filled in owning faction database and have given status are allowed to see the base.

Implements IFactionBase.

void AllowStatus ( int  status,
bool  allow 
)

Allows/disallows players with given status to see this base.

Implements IFactionBase.

void Remove (  ) 

Removes all additional data associated with this IFactionBase object.

Implements IFactionBase.


Member Data Documentation

uint factionId
uint locationId