vegastrike
0.5.1.r1
|
Classes | |
struct | Color |
class | Vector |
struct | GradColor |
struct | PlanetInfo |
struct | StarInfo |
Functions | |
float | mmax (float a, float b) |
int | rnd (int lower, int upper) |
string | getGenericName (vector< string > &s) |
string | getRandName (vector< string > &s) |
float | grand () |
float | difffunc (float inputdiffuse) |
void | WriteLight (unsigned int i) |
void | ResetGlobalVariables () |
void | readColorGrads (vector< string > &entity, const char *file) |
float | clamp01 (float a) |
float | getcolor (float c, float var) |
GradColor | whichGradColor (float r, unsigned int &j) |
Color | StarColor (float radius, unsigned int &entityindex) |
GFXColor | getStarColorFromRadius (float radius) |
float | LengthOfYear (Vector r, Vector s) |
void | CreateLight (unsigned int i) |
Vector | generateCenter (float minradii, bool jumppoint) |
float | makeRS (Vector &r, Vector &s, float minradii, bool jumppoint) |
void | Updateradii (float orbitsize, float thisplanetradius) |
Vector | generateAndUpdateRS (Vector &r, Vector &s, float thisplanetradius, bool jumppoint) |
vector< string > | parseBigUnit (const string &input) |
void | WriteUnit (const string &tag, const string &name, const string &filename, const Vector &r, const Vector &s, const Vector ¢er, const string &nebfile, const string &destination, bool faction, float thisloy=0) |
string | getJumpTo (const string &s) |
string | starin (const string &input) |
string | GetNebFile (string &input) |
string | AnalyzeType (string &input, string &nebfile, float &radius) |
void | MakeSmallUnit () |
void | MakeJump (float radius, bool forceRS=false, Vector R=Vector(0, 0, 0), Vector S=Vector(0, 0, 0), Vector center=Vector(0, 0, 0), float thisloy=0) |
void | MakeBigUnit (int callingentitytype, string name=string(), float orbitalradius=0) |
void | MakeMoons (float callingradius, int callingentitytype) |
void | MakeJumps (float callingradius, int callingentitytype, int numberofjumps) |
void | MakePlanet (float radius, int entitytype, string texturename, string unitname, string technique, int texturenum, int numberofjumps, int numberofstarbases) |
void | beginStar () |
void | endStar () |
void | CreateStar () |
void | CreateFirstStar () |
void | CreatePrimaries () |
void | CreateStarSystem () |
void | readentity (vector< string > &entity, const char *filename) |
const char * | noslash (const char *in) |
Variables | |
const char | nada [1] = "" |
vector< Color > | lights |
VSFile | f |
int | xmllevel |
const int | STAR = 0 |
const int | PLANET = 1 |
const int | MOON = 2 |
const int | JUMP = 3 |
vector< string > | starentities |
vector< string > | jumps |
vector< string > | gradtex |
vector< string > | naturalphenomena |
vector< string > | starbases |
unsigned int | numstarbases |
unsigned int | numnaturalphenomena |
unsigned int | numstarentities |
vector< string > | background |
vector< string > | names |
vector< string > | rings |
const float | moonofmoonprob = .01 |
string | systemname |
vector< float > | radii |
const float | minspeed = .001 |
const float | maxspeed = 8 |
vector< float > | starradius |
string | faction |
vector< GradColor > | colorGradiant |
float | compactness = 2 |
float | jumpcompactness = 2 |
vector< StarInfo > | stars |
unsigned int | planetoffset |
unsigned int | staroffset |
unsigned int | moonlevel |
string StarSystemGent::AnalyzeType | ( | string & | input, |
string & | nebfile, | ||
float & | radius | ||
) |
Definition at line 620 of file galaxy_gen.cpp.
void StarSystemGent::beginStar | ( | ) |
Definition at line 1019 of file galaxy_gen.cpp.
float StarSystemGent::clamp01 | ( | float | a) |
Definition at line 371 of file galaxy_gen.cpp.
void StarSystemGent::CreateFirstStar | ( | ) |
Definition at line 1097 of file galaxy_gen.cpp.
void StarSystemGent::CreateLight | ( | unsigned int | i) |
Definition at line 420 of file galaxy_gen.cpp.
void StarSystemGent::CreatePrimaries | ( | ) |
Definition at line 1111 of file galaxy_gen.cpp.
void StarSystemGent::CreateStar | ( | ) |
Definition at line 1092 of file galaxy_gen.cpp.
void StarSystemGent::CreateStarSystem | ( | ) |
Definition at line 1119 of file galaxy_gen.cpp.
float StarSystemGent::difffunc | ( | float | inputdiffuse) |
Definition at line 225 of file galaxy_gen.cpp.
void StarSystemGent::endStar | ( | ) |
Definition at line 1085 of file galaxy_gen.cpp.
Vector StarSystemGent::generateAndUpdateRS | ( | Vector & | r, |
Vector & | s, | ||
float | thisplanetradius, | ||
bool | jumppoint | ||
) |
Definition at line 524 of file galaxy_gen.cpp.
Vector StarSystemGent::generateCenter | ( | float | minradii, |
bool | jumppoint | ||
) |
Definition at line 452 of file galaxy_gen.cpp.
float StarSystemGent::getcolor | ( | float | c, |
float | var | ||
) |
Definition at line 379 of file galaxy_gen.cpp.
string StarSystemGent::getGenericName | ( | vector< string > & | s) |
Definition at line 88 of file galaxy_gen.cpp.
string StarSystemGent::getJumpTo | ( | const string & | s) |
Definition at line 582 of file galaxy_gen.cpp.
string StarSystemGent::GetNebFile | ( | string & | input) |
Definition at line 604 of file galaxy_gen.cpp.
string StarSystemGent::getRandName | ( | vector< string > & | s) |
Definition at line 95 of file galaxy_gen.cpp.
GFXColor StarSystemGent::getStarColorFromRadius | ( | float | radius) |
Definition at line 406 of file galaxy_gen.cpp.
float StarSystemGent::grand | ( | ) |
Definition at line 211 of file galaxy_gen.cpp.
Definition at line 413 of file galaxy_gen.cpp.
void StarSystemGent::MakeBigUnit | ( | int | callingentitytype, |
string | name = string() , |
||
float | orbitalradius = 0 |
||
) |
Definition at line 726 of file galaxy_gen.cpp.
void StarSystemGent::MakeJump | ( | float | radius, |
bool | forceRS = false , |
||
Vector | R = Vector( 0, 0, 0 ) , |
||
Vector | S = Vector( 0, 0, 0 ) , |
||
Vector | center = Vector( 0, 0, 0 ) , |
||
float | thisloy = 0 |
||
) |
writes out some pretty planet tags
Definition at line 681 of file galaxy_gen.cpp.
void StarSystemGent::MakeJumps | ( | float | callingradius, |
int | callingentitytype, | ||
int | numberofjumps | ||
) |
Definition at line 1003 of file galaxy_gen.cpp.
void StarSystemGent::MakeMoons | ( | float | callingradius, |
int | callingentitytype | ||
) |
Definition at line 1008 of file galaxy_gen.cpp.
void StarSystemGent::MakePlanet | ( | float | radius, |
int | entitytype, | ||
string | texturename, | ||
string | unitname, | ||
string | technique, | ||
int | texturenum, | ||
int | numberofjumps, | ||
int | numberofstarbases | ||
) |
Definition at line 786 of file galaxy_gen.cpp.
Definition at line 468 of file galaxy_gen.cpp.
void StarSystemGent::MakeSmallUnit | ( | ) |
Definition at line 654 of file galaxy_gen.cpp.
float StarSystemGent::mmax | ( | float | a, |
float | b | ||
) |
Definition at line 76 of file galaxy_gen.cpp.
const char* StarSystemGent::noslash | ( | const char * | in) |
Definition at line 1147 of file galaxy_gen.cpp.
vector< string > StarSystemGent::parseBigUnit | ( | const string & | input) |
Definition at line 536 of file galaxy_gen.cpp.
void StarSystemGent::readColorGrads | ( | vector< string > & | entity, |
const char * | file | ||
) |
Definition at line 342 of file galaxy_gen.cpp.
void StarSystemGent::readentity | ( | vector< string > & | entity, |
const char * | filename | ||
) |
warning... obvious vulnerability
Definition at line 1134 of file galaxy_gen.cpp.
void StarSystemGent::ResetGlobalVariables | ( | ) |
Definition at line 314 of file galaxy_gen.cpp.
int StarSystemGent::rnd | ( | int | lower, |
int | upper | ||
) |
Definition at line 81 of file galaxy_gen.cpp.
Color StarSystemGent::StarColor | ( | float | radius, |
unsigned int & | entityindex | ||
) |
Definition at line 398 of file galaxy_gen.cpp.
string StarSystemGent::starin | ( | const string & | input) |
Definition at line 590 of file galaxy_gen.cpp.
void StarSystemGent::Updateradii | ( | float | orbitsize, |
float | thisplanetradius | ||
) |
Definition at line 516 of file galaxy_gen.cpp.
GradColor StarSystemGent::whichGradColor | ( | float | r, |
unsigned int & | j | ||
) |
Definition at line 383 of file galaxy_gen.cpp.
void StarSystemGent::WriteLight | ( | unsigned int | i) |
Definition at line 229 of file galaxy_gen.cpp.
void StarSystemGent::WriteUnit | ( | const string & | tag, |
const string & | name, | ||
const string & | filename, | ||
const Vector & | r, | ||
const Vector & | s, | ||
const Vector & | center, | ||
const string & | nebfile, | ||
const string & | destination, | ||
bool | faction, | ||
float | thisloy = 0 |
||
) |
Definition at line 556 of file galaxy_gen.cpp.
vector< string > StarSystemGent::background |
Definition at line 272 of file galaxy_gen.cpp.
vector< GradColor > StarSystemGent::colorGradiant |
Definition at line 282 of file galaxy_gen.cpp.
float StarSystemGent::compactness = 2 |
Definition at line 283 of file galaxy_gen.cpp.
VSFile StarSystemGent::f |
Definition at line 216 of file galaxy_gen.cpp.
string StarSystemGent::faction |
Definition at line 281 of file galaxy_gen.cpp.
vector< string > StarSystemGent::gradtex |
Definition at line 266 of file galaxy_gen.cpp.
const int StarSystemGent::JUMP = 3 |
Definition at line 261 of file galaxy_gen.cpp.
float StarSystemGent::jumpcompactness = 2 |
Definition at line 284 of file galaxy_gen.cpp.
vector< string > StarSystemGent::jumps |
Definition at line 265 of file galaxy_gen.cpp.
vector< Color > StarSystemGent::lights |
Definition at line 215 of file galaxy_gen.cpp.
const float StarSystemGent::maxspeed = 8 |
Definition at line 279 of file galaxy_gen.cpp.
const float StarSystemGent::minspeed = .001 |
Definition at line 278 of file galaxy_gen.cpp.
const int StarSystemGent::MOON = 2 |
Definition at line 260 of file galaxy_gen.cpp.
unsigned int StarSystemGent::moonlevel |
Definition at line 312 of file galaxy_gen.cpp.
const float StarSystemGent::moonofmoonprob = .01 |
Definition at line 275 of file galaxy_gen.cpp.
const char StarSystemGent::nada[1] = "" |
Definition at line 87 of file galaxy_gen.cpp.
vector< string > StarSystemGent::names |
Definition at line 273 of file galaxy_gen.cpp.
vector< string > StarSystemGent::naturalphenomena |
Definition at line 267 of file galaxy_gen.cpp.
unsigned int StarSystemGent::numnaturalphenomena |
Definition at line 270 of file galaxy_gen.cpp.
unsigned int StarSystemGent::numstarbases |
Definition at line 269 of file galaxy_gen.cpp.
unsigned int StarSystemGent::numstarentities |
Definition at line 271 of file galaxy_gen.cpp.
const int StarSystemGent::PLANET = 1 |
Definition at line 259 of file galaxy_gen.cpp.
unsigned int StarSystemGent::planetoffset |
Definition at line 312 of file galaxy_gen.cpp.
vector< float > StarSystemGent::radii |
Definition at line 277 of file galaxy_gen.cpp.
vector< string > StarSystemGent::rings |
Definition at line 274 of file galaxy_gen.cpp.
const int StarSystemGent::STAR = 0 |
Definition at line 258 of file galaxy_gen.cpp.
vector< string > StarSystemGent::starbases |
Definition at line 268 of file galaxy_gen.cpp.
vector< string > StarSystemGent::starentities |
Definition at line 264 of file galaxy_gen.cpp.
unsigned int StarSystemGent::staroffset |
Definition at line 312 of file galaxy_gen.cpp.
vector< float > StarSystemGent::starradius |
Definition at line 280 of file galaxy_gen.cpp.
vector< StarInfo > StarSystemGent::stars |
Definition at line 311 of file galaxy_gen.cpp.
string StarSystemGent::systemname |
Definition at line 276 of file galaxy_gen.cpp.
int StarSystemGent::xmllevel |
Definition at line 217 of file galaxy_gen.cpp.