Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <faction_generic.h>
Classes | |
struct | comm_face_t |
struct | faction_stuff |
Public Member Functions | |
void | ParseAllies (unsigned int whichfaction) |
Faction () | |
~Faction () | |
Static Public Member Functions | |
static void | ParseAllAllies () |
Figures out the relationships of each faction with each other. More... | |
static void | LoadXML (const char *factionfile, char *xmlbuffer=NULL, int buflength=0) |
static void | beginElement (void *userData, const XML_Char *name, const XML_Char **atts) |
static void | endElement (void *userData, const XML_Char *name) |
Public Attributes | |
bool | citizen |
int | playlist |
float | sparkcolor [4] |
std::vector< faction_stuff > | faction |
std::string | logoName |
If logo==0, load from this one. More... | |
std::string | logoAlphaName |
std::string | secondaryLogoName |
If secondaryLogo==0, load from this one. More... | |
std::string | secondaryLogoAlphaName |
Texture * | logo |
Logos used by the ships of that faction. More... | |
Texture * | secondaryLogo |
char * | factionname |
char * of the name More... | |
std::vector< comm_face_t > | comm_faces |
std::vector< boost::shared_ptr < Animation > > | explosion |
std::vector< std::string > | explosion_name |
std::vector< unsigned char > | comm_face_sex |
MapStringFloat | ship_relation_modifier |
boost::shared_ptr< Unit > | contraband |
Definition at line 16 of file faction_generic.h.
|
inline |
Definition at line 83 of file faction_generic.h.
References citizen, factionname, logo, playlist, secondaryLogo, and sparkcolor.
Faction::~Faction | ( | ) |
Definition at line 9 of file faction_util.cpp.
|
static |
Definition at line 93 of file faction_xml.cpp.
References CommXML::attribute_map, FactionXML::BASE_ONLY, FactionXML::COMM_ANIMATION, FactionXML::CONTRABAND, contrabandlists, FactionXML::CONVERSATION, FactionUtil::createAnimation(), FactionXML::DOCKABLE_ONLY, CommXML::element_map, FactionXML::ENEMY, FactionXML::EXPLOSION, FactionXML::FACTION, StarSystemGent::faction, factions, FactionXML::FACTIONS, FactionXML::FRIEND, FactionXML::ISCITIZEN, FactionXML::LOGOA, FactionXML::LOGORGB, XMLSupport::EnumMap::lookup(), FactionXML::MOOD_ANIMATION, CommXML::NAME, StarSystemGent::names, FactionUtil::neutralfac, XMLSupport::parse_bool(), XMLSupport::parse_float(), XMLSupport::parse_int(), FactionUtil::planetfac, FactionXML::RELATION, FactionXML::SECLOGOA, FactionXML::SECLOGORGB, FactionXML::SEX, FactionXML::SHIPMODIFIER, FactionXML::SPARKALPHA, FactionXML::SPARKBLUE, FactionXML::SPARKGREEN, FactionXML::SPARKRED, FactionXML::STATS, unitlevel, CommXML::UNKNOWN, and FactionUtil::upgradefac.
Referenced by LoadXML().
|
static |
Definition at line 269 of file faction_xml.cpp.
References CommXML::element_map, XMLSupport::EnumMap::lookup(), unitlevel, and CommXML::UNKNOWN.
Referenced by LoadXML().
|
static |
Definition at line 284 of file faction_xml.cpp.
References beginElement(), VSFileSystem::CommFile, endElement(), f, factions, i, j, FactionUtil::LoadSerializedFaction(), VSFileSystem::LookForFile(), VSFileSystem::Ok, unitlevel, and VSFileSystem::UnknownFile.
Referenced by Universe::LoadFactionXML().
|
static |
Figures out the relationships of each faction with each other.
Definition at line 8 of file faction_generic.cpp.
References StarSystemGent::faction, factions, and i.
void Faction::ParseAllies | ( | unsigned int | whichfaction) |
Definition at line 18 of file faction_generic.cpp.
References StarSystemGent::faction, factions, i, and j.
bool Faction::citizen |
holds the relationships to all other factions loaded hold misguided info for self FIXME
Definition at line 45 of file faction_generic.h.
Referenced by Faction().
std::vector< unsigned char > Faction::comm_face_sex |
Definition at line 73 of file faction_generic.h.
std::vector< comm_face_t > Faction::comm_faces |
Definition at line 70 of file faction_generic.h.
boost::shared_ptr<Unit> Faction::contraband |
Definition at line 76 of file faction_generic.h.
std::vector< boost::shared_ptr<Animation> > Faction::explosion |
Definition at line 71 of file faction_generic.h.
std::vector< std::string > Faction::explosion_name |
Definition at line 72 of file faction_generic.h.
std::vector< faction_stuff > Faction::faction |
Definition at line 48 of file faction_generic.h.
char* Faction::factionname |
Texture* Faction::logo |
Logos used by the ships of that faction.
Definition at line 56 of file faction_generic.h.
Referenced by Faction().
std::string Faction::logoAlphaName |
Definition at line 51 of file faction_generic.h.
std::string Faction::logoName |
If logo==0, load from this one.
Definition at line 50 of file faction_generic.h.
int Faction::playlist |
Definition at line 46 of file faction_generic.h.
Referenced by Faction().
Texture* Faction::secondaryLogo |
Definition at line 58 of file faction_generic.h.
Referenced by Faction().
std::string Faction::secondaryLogoAlphaName |
Definition at line 54 of file faction_generic.h.
std::string Faction::secondaryLogoName |
If secondaryLogo==0, load from this one.
Definition at line 53 of file faction_generic.h.
MapStringFloat Faction::ship_relation_modifier |
Definition at line 74 of file faction_generic.h.
float Faction::sparkcolor[4] |
Definition at line 47 of file faction_generic.h.
Referenced by Faction().