Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include "star_system_generic.h"
#include "cmd/script/mission.h"
#include "universe_generic.h"
#include "galaxy_xml.h"
#include "galaxy_gen.h"
#include "vsfilesystem.h"
#include "configxml.h"
#include "vs_globals.h"
#include "xml_support.h"
#include "lin_time.h"
#include "options.h"
#include <vector>
#include <string>
#include <map>
#include <deque>
#include <algorithm>
Go to the source code of this file.
Functions | |
string | RemoveDotSystem (const char *input) |
string | getUniversePath () |
string | getVarEitherSectionOrSub (Galaxy *galaxy, string section, string subsection, string variable, string defaultst) |
void | ClampIt (float &prop, float min, float max) |
void | ClampIt (int &prop, int min, int max) |
static void | clampSystem (SystemInfo &si, const SystemInfo &min, const SystemInfo &max) |
void | GetSystemXProp (Galaxy *galaxy, std::string sector, std::string minmax, SystemInfo &si) |
SystemInfo | GetSystemMin (Galaxy *galaxy) |
SystemInfo | GetSystemMax (Galaxy *galaxy) |
static float | av01 () |
static float | sqav01 () |
static float | fsqav (float in1, float in2) |
static int | rnd (int in1, int in2) |
static int | iav (int in1, int in2) |
static int | isqav (int in1, int in2) |
void | AvgSystems (const SystemInfo &a, const SystemInfo &b, SystemInfo &si) |
const vector< string > & | ParseDestinations (const string &value) |
void | MakeStarSystem (string file, Galaxy *galaxy, string origin, int forcerandom) |
Variables | |
vs_options | game_options |
|
static |
void AvgSystems | ( | const SystemInfo & | a, |
const SystemInfo & | b, | ||
SystemInfo & | si | ||
) |
Definition at line 165 of file galaxy.cpp.
References a, SystemInfo::asteroids, SystemInfo::compactness, SystemInfo::force, fsqav(), iav(), isqav(), SystemInfo::nebulae, SystemInfo::numstars, SystemInfo::numun1, SystemInfo::numun2, SystemInfo::seed, and SystemInfo::sunradius.
Referenced by MakeStarSystem().
Definition at line 73 of file galaxy.cpp.
Referenced by clampSystem().
|
static |
Definition at line 89 of file galaxy.cpp.
References ClampIt(), SystemInfo::compactness, SystemInfo::numstars, SystemInfo::numun1, SystemInfo::numun2, and SystemInfo::sunradius.
Referenced by MakeStarSystem().
SystemInfo GetSystemMax | ( | Galaxy * | galaxy) |
Definition at line 127 of file galaxy.cpp.
References GetSystemXProp().
Referenced by MakeStarSystem().
SystemInfo GetSystemMin | ( | Galaxy * | galaxy) |
Definition at line 120 of file galaxy.cpp.
References GetSystemXProp().
Referenced by MakeStarSystem().
void GetSystemXProp | ( | Galaxy * | galaxy, |
std::string | sector, | ||
std::string | minmax, | ||
SystemInfo & | si | ||
) |
Definition at line 98 of file galaxy.cpp.
References SystemInfo::asteroids, SystemInfo::asteroidslist, SystemInfo::backgrounds, SystemInfo::compactness, SystemInfo::faction, SystemInfo::force, getVarEitherSectionOrSub(), SystemInfo::names, SystemInfo::nebulae, SystemInfo::nebulaelist, SystemInfo::numstars, SystemInfo::numun1, SystemInfo::numun2, XMLSupport::parse_bool(), XMLSupport::parse_float(), XMLSupport::parse_int(), SystemInfo::planetlist, SystemInfo::ringlist, SystemInfo::seed, SystemInfo::smallun, SystemInfo::stars, and SystemInfo::sunradius.
Referenced by GetSystemMax(), GetSystemMin(), and MakeStarSystem().
string getUniversePath | ( | ) |
Definition at line 56 of file galaxy.cpp.
References vs_options::universe_path.
string getVarEitherSectionOrSub | ( | Galaxy * | galaxy, |
string | section, | ||
string | subsection, | ||
string | variable, | ||
string | defaultst | ||
) |
Definition at line 62 of file galaxy.cpp.
References GalaxyXML::SGalaxy::getVariable().
Referenced by GetSystemXProp(), and MakeStarSystem().
Definition at line 192 of file galaxy.cpp.
References SystemInfo::asteroids, SystemInfo::asteroidslist, AvgSystems(), SystemInfo::backgrounds, clampSystem(), SystemInfo::compactness, SystemInfo::faction, accountXML::file, SystemInfo::filename, SystemInfo::force, generateStarSystem(), getStarSystemName(), getStarSystemSector(), GetSystemMax(), GetSystemMin(), GetSystemXProp(), getVarEitherSectionOrSub(), GalaxyXML::SGalaxy::getVariable(), i, SystemInfo::jumps, SystemInfo::name, SystemInfo::names, SystemInfo::nebulae, SystemInfo::nebulaelist, SystemInfo::numstars, SystemInfo::numun1, SystemInfo::numun2, XMLSupport::parse_bool(), XMLSupport::parse_float(), XMLSupport::parse_int(), ParseDestinations(), SystemInfo::planetlist, vs_options::PushValuesToMean, RemoveDotSystem(), SystemInfo::ringlist, SystemInfo::sector, SystemInfo::seed, SystemInfo::smallun, SystemInfo::stars, SystemInfo::sunradius, and XMLSupport::tostring().
Referenced by Universe::Generate1().
const vector< string >& ParseDestinations | ( | const string & | value) |
Definition at line 178 of file galaxy.cpp.
Referenced by Mission::call_unit_launch(), Universe::getAdjacentStarSystems(), MakeStarSystem(), and UniverseUtil::showSplashScreen().
string RemoveDotSystem | ( | const char * | input) |
Definition at line 27 of file galaxy.cpp.
References RemoveDotSystem().
Referenced by Universe::Generate1(), Universe::getAdjacentStarSystems(), StarSystem::getFileName(), Universe::getGalaxyProperty(), Universe::getGalaxyPropertyDefault(), MakeStarSystem(), and RemoveDotSystem().
Definition at line 150 of file galaxy.cpp.
Referenced by StarSystemGent::generateCenter(), StarSystemGent::getGenericName(), StarSystemGent::getRandName(), iav(), main(), StarSystemGent::MakePlanet(), StarSystemGent::makeRS(), and readplanetentity().
|
static |
vs_options game_options |