1 #ifndef __FACTIONGENERIC_H
2 #define __FACTIONGENERIC_H
5 #include <boost/shared_ptr.hpp>
71 std::vector< boost::shared_ptr<Animation> >
explosion;
80 static void LoadXML(
const char *factionfile,
char *xmlbuffer = NULL,
int buflength = 0 );
81 static void beginElement(
void *userData,
const XML_Char *name,
const XML_Char **atts );
82 static void endElement(
void *userData,
const XML_Char *name );
97 extern std::vector< boost::shared_ptr<Faction> >
factions;
109 int numnums(
const char *str );
141 return factions[myfaction]->faction[theirfaction].relationship;
147 bool isCitizen(
const std::string& name );
148 void AdjustIntRelation(
const int myfaction,
const int theirfaction,
const float factor,
const float rank );
159 Texture *
createTexture(
const char *tex,
const char *tmp,
bool force =
false );
160 Texture *
createTexture(
const char *tex,
bool force =
false );
161 std::vector< class Animation* > *
GetAnimation(
int faction,
int n,
unsigned char &sex );