vegastrike
0.5.1.r1
|
Functions | |
std::vector< class Animation * > * | GetRandCommAnimation (int faction, Unit *unit, unsigned char &sex) |
void | SerializeFaction (FILE *file) |
std::string | SerializeFaction () |
void | LoadSerializedFaction (FILE *file) |
void | LoadSerializedFaction (char *&buf) |
int | numnums (const char *str) |
int | GetNumAnimation (int faction) |
returns the index of the faction with that name More... | |
class Unit * | GetContraband (int faction) |
const char * | GetFaction (int faction) |
int | GetFactionIndex (const std::string &name) |
int | GetUpgradeFaction () |
int | GetNeutralFaction () |
int | GetPlanetFaction () |
float | GetIntRelation (const int myfaction, const int theirfaction) |
std::string | GetFactionName (int index) |
bool | isCitizenInt (int index) |
bool | isCitizen (const std::string &name) |
void | AdjustIntRelation (const int myfaction, const int theirfaction, const float factor, const float rank) |
int | GetPlaylist (const int myfaction) |
const float * | GetSparkColor (const int myfaction) |
unsigned int | GetNumFactions () |
FSM * | GetConversation (const int myfaction, const int theirfaction) |
Texture * | getForceLogo (int faction) |
Texture * | getSquadLogo (int faction) |
Animation * | createAnimation (const char *anim) |
Texture * | createTexture (const char *tex, const char *tmp, bool force=false) |
Texture * | createTexture (const char *tex, bool force=false) |
std::vector< class Animation * > * | GetAnimation (int faction, int n, unsigned char &sex) |
Animation * | GetRandExplosionAnimation (int whichfaction, std::string &which) |
void | LoadFactionPlaylists () |
void | LoadContrabandLists () |
Variables | |
int | upgradefac = 0 |
int | neutralfac = 0 |
int | planetfac = 0 |
void FactionUtil::AdjustIntRelation | ( | const int | myfaction, |
const int | theirfaction, | ||
const float | factor, | ||
const float | rank | ||
) |
Definition at line 90 of file faction_util_generic.cpp.
Animation * FactionUtil::createAnimation | ( | const char * | anim) |
Definition at line 124 of file faction_util.cpp.
Texture * FactionUtil::createTexture | ( | const char * | tex, |
const char * | tmp, | ||
bool | force = false |
||
) |
Definition at line 137 of file faction_util.cpp.
Texture * FactionUtil::createTexture | ( | const char * | tex, |
bool | force = false |
||
) |
Definition at line 129 of file faction_util.cpp.
std::vector< Animation * > * FactionUtil::GetAnimation | ( | int | faction, |
int | n, | ||
unsigned char & | sex | ||
) |
Definition at line 59 of file faction_util.cpp.
Unit * FactionUtil::GetContraband | ( | int | faction) |
Definition at line 42 of file faction_util_generic.cpp.
FSM * FactionUtil::GetConversation | ( | const int | myfaction, |
const int | theirfaction | ||
) |
Definition at line 18 of file faction_util_generic.cpp.
const char * FactionUtil::GetFaction | ( | int | faction) |
Definition at line 24 of file faction_util_generic.cpp.
int FactionUtil::GetFactionIndex | ( | const std::string & | name) |
Returns the relationship between myfaction and theirfaction 1 is happy. 0 is neutral (btw 1 and 0 will not attack) -1 is mad. <0 will attack
string FactionUtil::GetFactionName | ( | int | index) |
Definition at line 71 of file faction_util_generic.cpp.
Texture * FactionUtil::getForceLogo | ( | int | faction) |
Definition at line 17 of file faction_util.cpp.
|
inline |
Definition at line 139 of file faction_generic.h.
|
inline |
Definition at line 129 of file faction_generic.h.
int FactionUtil::GetNumAnimation | ( | int | faction) |
returns the index of the faction with that name
Definition at line 52 of file faction_util.cpp.
unsigned int FactionUtil::GetNumFactions | ( | ) |
Definition at line 122 of file faction_util_generic.cpp.
|
inline |
Definition at line 134 of file faction_generic.h.
int FactionUtil::GetPlaylist | ( | const int | myfaction) |
Definition at line 114 of file faction_util_generic.cpp.
std::vector< Animation * > * FactionUtil::GetRandCommAnimation | ( | int | faction, |
Unit * | unit, | ||
unsigned char & | sex | ||
) |
Definition at line 65 of file faction_util.cpp.
Animation * FactionUtil::GetRandExplosionAnimation | ( | int | whichfaction, |
std::string & | which | ||
) |
Definition at line 97 of file faction_util.cpp.
const float * FactionUtil::GetSparkColor | ( | const int | myfaction) |
Definition at line 118 of file faction_util_generic.cpp.
Texture * FactionUtil::getSquadLogo | ( | int | faction) |
Definition at line 34 of file faction_util.cpp.
|
inline |
Definition at line 124 of file faction_generic.h.
bool FactionUtil::isCitizen | ( | const std::string & | name) |
Definition at line 67 of file faction_util_generic.cpp.
bool FactionUtil::isCitizenInt | ( | int | index) |
Definition at line 63 of file faction_util_generic.cpp.
void FactionUtil::LoadContrabandLists | ( | ) |
Still in faction_xml.cpp because createUnit
void FactionUtil::LoadFactionPlaylists | ( | ) |
Definition at line 115 of file faction_util.cpp.
void FactionUtil::LoadSerializedFaction | ( | FILE * | file) |
Definition at line 155 of file faction_util_generic.cpp.
void FactionUtil::LoadSerializedFaction | ( | char *& | buf) |
Definition at line 196 of file faction_util_generic.cpp.
int FactionUtil::numnums | ( | const char * | str) |
Definition at line 148 of file faction_util_generic.cpp.
void FactionUtil::SerializeFaction | ( | FILE * | file) |
Definition at line 126 of file faction_util_generic.cpp.
string FactionUtil::SerializeFaction | ( | ) |
Definition at line 134 of file faction_util_generic.cpp.
int FactionUtil::neutralfac = 0 |
Definition at line 17 of file faction_util_generic.cpp.
int FactionUtil::planetfac = 0 |
Definition at line 16 of file faction_util_generic.cpp.
int FactionUtil::upgradefac = 0 |
Definition at line 15 of file faction_util_generic.cpp.