Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include "unit_generic.h"
Go to the source code of this file.
Enumerations | |
enum | UNITLOADTYPE { DEFAULT, NO_MESH } |
Functions | |
void | addShieldMesh (Unit::XML *xml, const char *filename, const float scale, int faction, class Flightgroup *fg) |
void | addRapidMesh (Unit::XML *xml, const char *filename, const float scale, int faction, class Flightgroup *fg) |
void | pushMesh (Unit::XML *xml, const char *filename, const float scale, int faction, class Flightgroup *fg, int startframe, double texturestarttime) |
Mount * | createMount (const std::string &name, int ammo, int volume, float xyscale=0, float zscale=0) |
VSSprite * | createVSSprite (const char *file) |
bool | isVSSpriteLoaded (const VSSprite *) |
void | deleteVSSprite (VSSprite *) |
void | cache_ani (string s) |
Variables | |
UNITLOADTYPE | current_unit_load_mode |
enum UNITLOADTYPE |
void addRapidMesh | ( | Unit::XML * | xml, |
const char * | filename, | ||
const float | scale, | ||
int | faction, | ||
class Flightgroup * | fg | ||
) |
Definition at line 464 of file unit_xml.cpp.
References Mesh::LoadMesh(), Unit::XML::rapidmesh, and Vector.
void addShieldMesh | ( | Unit::XML * | xml, |
const char * | filename, | ||
const float | scale, | ||
int | faction, | ||
class Flightgroup * | fg | ||
) |
Definition at line 453 of file unit_xml.cpp.
References VegaConfig::getVariable(), Mesh::LoadMesh(), ONE, XMLSupport::parse_bool(), Mesh::SetBlendMode(), Mesh::setEnvMap(), Mesh::setLighting(), Unit::XML::shieldmesh, Vector, and vs_config.
void cache_ani | ( | string | s) |
Definition at line 47 of file unit_functions.cpp.
References tempcache.
Referenced by Unit::LoadRow().
Mount* createMount | ( | const std::string & | name, |
int | ammo, | ||
int | volume, | ||
float | xyscale = 0 , |
||
float | zscale = 0 |
||
) |
VSSprite* createVSSprite | ( | const char * | file) |
Definition at line 25 of file unit_functions.cpp.
Referenced by Unit::LoadRow().
void deleteVSSprite | ( | VSSprite * | ) |
Definition at line 33 of file unit_functions.cpp.
Referenced by Unit::LoadRow().
Definition at line 29 of file unit_functions.cpp.
References VSSprite::LoadSuccess().
Referenced by Unit::LoadRow().
void pushMesh | ( | Unit::XML * | xml, |
const char * | filename, | ||
const float | scale, | ||
int | faction, | ||
class Flightgroup * | fg, | ||
int | startframe, | ||
double | texturestarttime | ||
) |
UNITLOADTYPE current_unit_load_mode |
Definition at line 28 of file unit_xml.cpp.
Referenced by buildShipDescription(), buildUpgradeDescription(), and BaseComputer::showShipStats().