Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
faction_generic.h File Reference
#include "config.h"
#include <string>
#include <boost/shared_ptr.hpp>
#include "xml_support.h"

Go to the source code of this file.

Classes

class  Faction
 
struct  Faction::faction_stuff
 
union  Faction::faction_stuff::faction_name
 for internal purposes only. More...
 
struct  Faction::comm_face_t
 

Namespaces

 FactionUtil
 

Constant Groups

 FactionUtil
 

Typedefs

typedef vsUMap< std::string,
float
MapStringFloat
 

Functions

std::vector< class Animation * > * FactionUtil::GetRandCommAnimation (int faction, Unit *unit, unsigned char &sex)
 
void FactionUtil::SerializeFaction (FILE *file)
 
std::string FactionUtil::SerializeFaction ()
 
void FactionUtil::LoadSerializedFaction (FILE *file)
 
void FactionUtil::LoadSerializedFaction (char *&buf)
 
int FactionUtil::numnums (const char *str)
 
int FactionUtil::GetNumAnimation (int faction)
 returns the index of the faction with that name More...
 
class UnitFactionUtil::GetContraband (int faction)
 
const char * FactionUtil::GetFaction (int faction)
 
int FactionUtil::GetFactionIndex (const std::string &name)
 
int FactionUtil::GetUpgradeFaction ()
 
int FactionUtil::GetNeutralFaction ()
 
int FactionUtil::GetPlanetFaction ()
 
float FactionUtil::GetIntRelation (const int myfaction, const int theirfaction)
 
std::string FactionUtil::GetFactionName (int index)
 
bool FactionUtil::isCitizenInt (int index)
 
bool FactionUtil::isCitizen (const std::string &name)
 
void FactionUtil::AdjustIntRelation (const int myfaction, const int theirfaction, const float factor, const float rank)
 
int FactionUtil::GetPlaylist (const int myfaction)
 
const floatFactionUtil::GetSparkColor (const int myfaction)
 
unsigned int FactionUtil::GetNumFactions ()
 
FSMFactionUtil::GetConversation (const int myfaction, const int theirfaction)
 
TextureFactionUtil::getForceLogo (int faction)
 
TextureFactionUtil::getSquadLogo (int faction)
 
AnimationFactionUtil::createAnimation (const char *anim)
 
TextureFactionUtil::createTexture (const char *tex, const char *tmp, bool force=false)
 
TextureFactionUtil::createTexture (const char *tex, bool force=false)
 
std::vector< class Animation * > * FactionUtil::GetAnimation (int faction, int n, unsigned char &sex)
 
AnimationFactionUtil::GetRandExplosionAnimation (int whichfaction, std::string &which)
 
void FactionUtil::LoadFactionPlaylists ()
 
void FactionUtil::LoadContrabandLists ()
 

Variables

std::vector< boost::shared_ptr
< Faction > > 
factions
 
int FactionUtil::upgradefac = 0
 
int FactionUtil::neutralfac = 0
 
int FactionUtil::planetfac = 0
 

Typedef Documentation

typedef vsUMap< std::string, float > MapStringFloat

Definition at line 13 of file faction_generic.h.

Variable Documentation

std::vector< boost::shared_ptr<Faction> > factions

Definition at line 6 of file faction_generic.cpp.