Public Member Functions | Public Attributes

Faction Class Reference

Inherits IFaction.

List of all members.

Public Member Functions

 Faction (int id, const string& name, const string& database_name, int update_seq)
int get_Id () const
string get_Name () const
int get_StringId () const
string get_Database () const
int get_UpdateSeq () const
void set_UpdateSeq (int val)
int GetRank (int cr_id) const
void SetRank (int cr_id, int rank)
int GetStatus (int cr_id) const
void SetStatus (int cr_id, int status)
int GetMembers (array< uint >& members) const
 Retrieves the array of id numbers for all members of the faction.
int GetRecords (array< uint >& records) const
void AddKnownFaction (int faction_id)
 Adds faction to the list of known factions.
int GetKnownFactions (array< int >& factions) const
 Retrieves the list of factions that players have entered into their terminal and are therefore recognized by them.
void Remove ()

Public Attributes

int id
string name
string database
int update_seq
FactionDatadata

Constructor & Destructor Documentation

Faction ( int  id,
const string name,
const string database_name,
int  update_seq 
)

Member Function Documentation

int get_Id (  )  const

Implements IFaction.

string get_Name (  )  const

Implements IFaction.

int get_StringId (  )  const

Implements IFaction.

string get_Database (  )  const

Implements IFaction.

int get_UpdateSeq (  )  const

Implements IFaction.

void set_UpdateSeq ( int  val  ) 

Implements IFaction.

int GetRank ( int  cr_id  )  const

Implements IFaction.

void SetRank ( int  cr_id,
int  rank 
)

Implements IFaction.

int GetStatus ( int  cr_id  )  const

Implements IFaction.

void SetStatus ( int  cr_id,
int  status 
)

Implements IFaction.

int GetMembers ( array< uint >&   )  const

Retrieves the array of id numbers for all members of the faction.

Implements IFaction.

int GetRecords ( array< uint >&  records  )  const

Implements IFaction.

void AddKnownFaction ( int   ) 

Adds faction to the list of known factions.

Implements IFaction.

int GetKnownFactions ( array< int >&   )  const

Retrieves the list of factions that players have entered into their terminal and are therefore recognized by them.

Implements IFaction.

void Remove (  ) 

Implements IFaction.


Member Data Documentation

int id