Pioneer
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
Faction Class Reference

#include <Factions.h>

Inheritance diagram for Faction:
Inheritance graph
[legend]
Collaboration diagram for Faction:
Collaboration graph
[legend]

Public Types

typedef std::pair< Polit::GovType, Sint32 > GovWeight
 
typedef std::vector< GovWeightGovWeightVec
 
typedef GovWeightVec::const_iterator GovWeightIterator
 
typedef std::vector< SystemPathClaimList
 
typedef std::map< GalacticEconomy::CommodityId, Uint32 > CommodityProbMap
 

Public Member Functions

 Faction (Galaxy *galaxy)
 
void PushClaim (SystemPath path)
 
bool IsClaimed (SystemPath) const
 
double Radius () const
 
bool IsValid () const
 
Color AdjustedColour (fixed population, bool inRange) const
 
Polit::GovType PickGovType (Random &rand) const
 
void SetBestFitHomeworld (Sint32 x, Sint32 y, Sint32 z, Sint32 si, Uint32 bi, Sint32 axisChange)
 
RefCountedPtr< const SectorGetHomeSector () const
 
- Public Member Functions inherited from DeleteEmitter
 DeleteEmitter ()
 
virtual ~DeleteEmitter ()
 
- Public Member Functions inherited from LuaWrappable
virtual ~LuaWrappable ()
 

Public Attributes

Uint32 idx
 
std::string name
 
std::string description_short
 
std::string description
 
GovWeightVec govtype_weights
 
Sint32 govtype_weights_total
 
bool hasHomeworld
 
SystemPath homeworld
 
double foundingDate
 
double expansionRate
 
std::string military_name
 
std::string police_name
 
std::string police_ship
 
ClaimList m_ownedsystemlist
 
CommodityProbMap commodity_legality
 
Color colour
 
- Public Attributes inherited from DeleteEmitter
sigc::signal< void > onDelete
 

Static Public Attributes

static const Uint32 BAD_FACTION_IDX = UINT_MAX
 
static const Color BAD_FACTION_COLOUR = Color(204, 204, 204, 128)
 
static const float FACTION_BASE_ALPHA = 0.40f
 

Friends

class FactionsDatabase
 

Member Typedef Documentation

◆ ClaimList

typedef std::vector<SystemPath> Faction::ClaimList

◆ CommodityProbMap

◆ GovWeight

typedef std::pair<Polit::GovType, Sint32> Faction::GovWeight

◆ GovWeightIterator

typedef GovWeightVec::const_iterator Faction::GovWeightIterator

◆ GovWeightVec

typedef std::vector<GovWeight> Faction::GovWeightVec

Constructor & Destructor Documentation

◆ Faction()

Faction::Faction ( Galaxy galaxy)

Member Function Documentation

◆ AdjustedColour()

Color Faction::AdjustedColour ( fixed  population,
bool  inRange 
) const
Here is the call graph for this function:

◆ GetHomeSector()

RefCountedPtr< const Sector > Faction::GetHomeSector ( ) const
Here is the call graph for this function:

◆ IsClaimed()

bool Faction::IsClaimed ( SystemPath  path) const

◆ IsValid()

bool Faction::IsValid ( ) const
inline

◆ PickGovType()

Polit::GovType Faction::PickGovType ( Random rand) const
Here is the call graph for this function:

◆ PushClaim()

void Faction::PushClaim ( SystemPath  path)
inline

◆ Radius()

double Faction::Radius ( ) const
inline

◆ SetBestFitHomeworld()

void Faction::SetBestFitHomeworld ( Sint32  x,
Sint32  y,
Sint32  z,
Sint32  si,
Uint32  bi,
Sint32  axisChange 
)
Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ FactionsDatabase

friend class FactionsDatabase
friend

Member Data Documentation

◆ BAD_FACTION_COLOUR

const Color Faction::BAD_FACTION_COLOUR = Color(204, 204, 204, 128)
static

◆ BAD_FACTION_IDX

const Uint32 Faction::BAD_FACTION_IDX = UINT_MAX
static

◆ colour

Color Faction::colour

◆ commodity_legality

CommodityProbMap Faction::commodity_legality

◆ description

std::string Faction::description

◆ description_short

std::string Faction::description_short

◆ expansionRate

double Faction::expansionRate

◆ FACTION_BASE_ALPHA

const float Faction::FACTION_BASE_ALPHA = 0.40f
static

◆ foundingDate

double Faction::foundingDate

◆ govtype_weights

GovWeightVec Faction::govtype_weights

◆ govtype_weights_total

Sint32 Faction::govtype_weights_total

◆ hasHomeworld

bool Faction::hasHomeworld

◆ homeworld

SystemPath Faction::homeworld

◆ idx

Uint32 Faction::idx

◆ m_ownedsystemlist

ClaimList Faction::m_ownedsystemlist

◆ military_name

std::string Faction::military_name

◆ name

std::string Faction::name

◆ police_name

std::string Faction::police_name

◆ police_ship

std::string Faction::police_ship

The documentation for this class was generated from the following files: