vegastrike  0.5.1.r1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Faction Class Reference

#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_stufffaction
 
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_tcomm_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
 

Detailed Description

Definition at line 16 of file faction_generic.h.

Constructor & Destructor Documentation

Faction::Faction ( )
inline

Definition at line 83 of file faction_generic.h.

Faction::~Faction ( )

Definition at line 9 of file faction_util.cpp.

Member Function Documentation

static void Faction::beginElement ( void *  userData,
const XML_Char *  name,
const XML_Char **  atts 
)
static
static void Faction::endElement ( void *  userData,
const XML_Char *  name 
)
static
static void Faction::LoadXML ( const char *  factionfile,
char *  xmlbuffer = NULL,
int  buflength = 0 
)
static
void Faction::ParseAllAllies ( )
static

Figures out the relationships of each faction with each other.

Definition at line 8 of file faction_generic.cpp.

void Faction::ParseAllies ( unsigned int  whichfaction)

Definition at line 18 of file faction_generic.cpp.

Member Data Documentation

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.

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

char * of the name

Definition at line 60 of file faction_generic.h.

Texture* Faction::logo

Logos used by the ships of that faction.

Definition at line 56 of file faction_generic.h.

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.

Texture* Faction::secondaryLogo

Definition at line 58 of file faction_generic.h.

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.


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