20 #ifndef __FACTIONS_H__ 21 #define __FACTIONS_H__ 23 #include <csutil/hash.h> 24 #include <csutil/csstring.h> 82 FactionSet(
const char *csv_list,csHash<Faction*, int, CS::Memory::AllocatorMalloc> &factionset);
86 bool GetFactionStanding(
int factionID,
int& standing,
float& weight);
100 void UpdateFactionStanding(
int factionID,
int delta,
bool setDirty =
true,
bool overwrite =
false);
105 void GetFactionListCSV(csString& csv);
109 csHash<FactionStanding*, int>&
GetStandings() {
return factionstandings; }
119 int GetFaction(
Faction *faction);
bool operator==(FactionLifeEvent OtherEvt) const
csHash< Faction *, int > * factions_by_id
A list of all the factions in this set.
csArray< FactionLifeEvent > NegativeFactionEvents
Stores the Negative faction values life events.
bool operator<(FactionLifeEvent OtherEvt) const
This class is a set of faction structures.
csHash< FactionStanding *, int > factionstandings
A list of all the standings with each faction.
This struct stores the particular score of a particular player to a particular faction.
int value
Value from which this life event is attribuited.
csArray< FactionLifeEvent > PositiveFactionEvents
Stores the Positive faction values life events.
csString event_description
The text of this life event.
This struct stores the values and text used for the dynamically generated life events based on factio...
csHash< FactionStanding *, int > & GetStandings()