Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
FactionMatrix Class Reference
Collaboration diagram for FactionMatrix:
[legend]

Public Member Functions

FactionpirateFaction ()
 
FactionpoliceFaction ()
 
FactionplayerFaction ()
 
FactionunknownFaction ()
 
FactiongetFaction (const std::string &factionName)
 
void addFaction (std::shared_ptr< Faction > faction)
 
FactionRelationgetRelation (Faction &factionA, Faction &factionB)
 
FactionRelationgetRelationToPlayer (Faction &faction)
 

Protected Member Functions

void setupRelations ()
 
std::pair< Faction *, Faction * > uniquePair (Faction &factionA, Faction &factionB)
 

Protected Attributes

std::unordered_map
< std::string, std::shared_ptr
< Faction > > 
m_factions
 
std::unordered_map< std::pair
< Faction *, Faction * >
, std::shared_ptr
< FactionRelation > > 
m_relations
 

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