Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <expat.h>
#include "xml_support.h"
#include "star_system_generic.h"
#include "cmd/planet_generic.h"
#include "cmd/unit_factory.h"
#include "vs_globals.h"
#include "vsfilesystem.h"
#include "configxml.h"
#include "vegastrike.h"
#include <assert.h>
#include "gfx/mesh.h"
#include "cmd/building_generic.h"
#include "cmd/ai/aggressive.h"
#include "cmd/ai/fire.h"
#include "cmd/nebula_generic.h"
#include "cmd/asteroid_generic.h"
#include "cmd/enhancement_generic.h"
#include "cmd/script/flightgroup.h"
#include "universe_util.h"
#include "cmd/atmosphere.h"
#include "options.h"
#include <stdlib.h>
#include <string>
#include <vector>
#include <map>
Go to the source code of this file.
Namespaces | |
StarXML | |
Constant Groups | |
StarXML | |
Functions | |
const vector< string > & | ParseDestinations (const string &value) |
void | bootstrap_draw (const string &message, Animation *SplashScreen=NULL) |
void | disableTerrainDraw (ContinuousTerrain *ct) |
Flightgroup * | getStaticBaseFlightgroup (int faction) |
Flightgroup * | getStaticNebulaFlightgroup (int faction) |
Flightgroup * | getStaticAsteroidFlightgroup (int faction) |
template<typename T > | |
static bool | EvalCondition (const char *op, const T &left, const T &right) |
static bool | ConfigCondition (const string &cond) |
static bool | ConfigAllows (string var, float val) |
static Vector | ComputeRotVel (float rotvel, const QVector &r, const QVector &s) |
static void | GetLights (const vector< GFXLight > &origlights, vector< GFXLightLocal > &curlights, const char *str, float lightSize) |
Unit * | getTopLevelOwner () |
BLENDFUNC | parse_alpha (const char *) |
static void | SetSubunitRotation (Unit *un, float difficulty) |
void | parse_dual_alpha (const char *alpha, BLENDFUNC &blendSrc, BLENDFUNC &blendDst) |
int | GetNumNearStarsScale () |
int | GetNumStarsScale () |
float | GetStarSpreadScale () |
float | ScaleOrbitDist (bool autogenerated) |
float | ScaleJumpRadius (float radius) |
Variables | |
vs_options | game_options |
needed for assert() calls. More... | |
const EnumMap::Pair | StarXML::element_names [] |
const EnumMap::Pair | StarXML::attribute_names [] |
const EnumMap | StarXML::element_map (element_names, sizeof(element_names)/sizeof(element_names[0])) |
const EnumMap | StarXML::attribute_map (attribute_names, sizeof(attribute_names)/sizeof(attribute_names[0])) |
void bootstrap_draw | ( | const string & | message, |
Animation * | SplashScreen = NULL |
||
) |
Definition at line 370 of file star_system_xml.cpp.
Definition at line 355 of file star_system_xml.cpp.
References VegaConfig::getVariable(), invert(), XMLSupport::parse_floatf(), vs_config, and x.
|
static |
Definition at line 324 of file star_system_xml.cpp.
References VegaConfig::getVariable(), XMLSupport::parse_floatf(), and vs_config.
void disableTerrainDraw | ( | ContinuousTerrain * | ct) |
Definition at line 390 of file cont_terrain.cpp.
References ContinuousTerrain::DisableDraw().
|
static |
Definition at line 272 of file star_system_xml.cpp.
|
static |
Definition at line 382 of file star_system_xml.cpp.
References GFXLightLocal::islocal, GFXLightLocal::ligh, and GFXLight::setSize().
int GetNumNearStarsScale | ( | ) |
Definition at line 440 of file star_system_xml.cpp.
References vs_options::num_near_stars.
Referenced by StarSystem::LoadXML().
int GetNumStarsScale | ( | ) |
Definition at line 445 of file star_system_xml.cpp.
References vs_options::num_far_stars.
Referenced by StarSystem::LoadXML().
float GetStarSpreadScale | ( | ) |
Definition at line 450 of file star_system_xml.cpp.
References vs_options::game_speed, and vs_options::star_spreading.
Referenced by StarSystem::LoadXML().
Flightgroup* getStaticAsteroidFlightgroup | ( | int | faction) |
Definition at line 195 of file star_system_generic.cpp.
References StarSystemGent::faction, and setStaticFlightgroup().
Flightgroup* getStaticBaseFlightgroup | ( | int | faction) |
Definition at line 172 of file star_system_generic.cpp.
References StarSystemGent::faction, and setStaticFlightgroup().
Flightgroup* getStaticNebulaFlightgroup | ( | int | faction) |
Definition at line 188 of file star_system_generic.cpp.
References StarSystemGent::faction, and setStaticFlightgroup().
Unit* getTopLevelOwner | ( | ) |
Definition at line 320 of file star_system_generic.cpp.
BLENDFUNC parse_alpha | ( | const char * | ) |
Definition at line 146 of file mesh_xml.cpp.
References CONSTALPHA, CONSTCOLOR, DESTALPHA, DESTCOLOR, INVCONSTALPHA, INVCONSTCOLOR, INVDESTALPHA, INVDESTCOLOR, INVSRCALPHA, INVSRCCOLOR, ONE, SRCALPHA, SRCALPHASAT, SRCCOLOR, and ZERO.
Definition at line 420 of file star_system_xml.cpp.
References d, INVSRCALPHA, ONE, parse_alpha(), SRCALPHA, and ZERO.
const vector< string >& ParseDestinations | ( | const string & | value) |
Definition at line 178 of file galaxy.cpp.
Definition at line 64 of file star_system_generic.cpp.
References VegaConfig::getVariable(), XMLSupport::parse_float(), and vs_config.
Definition at line 455 of file star_system_xml.cpp.
References vs_options::autogen_compactness, and vs_options::runtime_compactness.
Definition at line 408 of file star_system_xml.cpp.
References float, Unit::getSubUnits(), Unit::SetAngularVelocity(), Vector, x, y, and z.
vs_options game_options |