Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
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 () |
static void | Tab () |
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.
References GetNebFile().
Referenced by MakeBigUnit(), and MakeSmallUnit().
void StarSystemGent::beginStar | ( | ) |
Definition at line 1019 of file galaxy_gen.cpp.
References b, center, f, float, g, generateAndUpdateRS(), VegaConfig::getVariable(), grand(), StarSystemGent::Vector::i, i, int, StarSystemGent::Vector::j, jumps, StarSystemGent::Vector::k, LengthOfYear(), lights, MakeBigUnit(), MakeJumps(), MakeMoons(), MakeSmallUnit(), numnaturalphenomena, numstarentities, XMLSupport::parse_float(), planetoffset, radii, STAR, starentities, staroffset, starradius, stars, systemname, Tab(), vs_config, VSFileSystem::vs_fprintf(), and xmllevel.
Referenced by CreateFirstStar(), and CreateStar().
void StarSystemGent::CreateFirstStar | ( | ) |
Definition at line 1097 of file galaxy_gen.cpp.
References beginStar(), CreateStar(), endStar(), grand(), numstarentities, and staroffset.
Referenced by CreatePrimaries().
void StarSystemGent::CreateLight | ( | unsigned int | i) |
Definition at line 420 of file galaxy_gen.cpp.
References gradtex, grand(), h, lights, numstarentities, StarColor(), starentities, starradius, and WriteLight().
Referenced by CreatePrimaries().
void StarSystemGent::CreatePrimaries | ( | ) |
Definition at line 1111 of file galaxy_gen.cpp.
References CreateFirstStar(), CreateLight(), i, and numstarentities.
Referenced by CreateStarSystem().
void StarSystemGent::CreateStar | ( | ) |
Definition at line 1092 of file galaxy_gen.cpp.
References beginStar(), and endStar().
Referenced by CreateFirstStar().
void StarSystemGent::CreateStarSystem | ( | ) |
Definition at line 1119 of file galaxy_gen.cpp.
References background, CreatePrimaries(), f, getRandName(), starradius, systemname, Tab(), and xmllevel.
Referenced by generateStarSystem().
Definition at line 225 of file galaxy_gen.cpp.
References UniverseUtil::sqrt().
Referenced by WriteLight().
void StarSystemGent::endStar | ( | ) |
Definition at line 1085 of file galaxy_gen.cpp.
References f, radii, Tab(), and xmllevel.
Referenced by CreateFirstStar(), and CreateStar().
Vector StarSystemGent::generateAndUpdateRS | ( | Vector & | r, |
Vector & | s, | ||
float | thisplanetradius, | ||
bool | jumppoint | ||
) |
Definition at line 524 of file galaxy_gen.cpp.
References generateCenter(), makeRS(), radii, starradius, Updateradii(), and Vector.
Referenced by beginStar(), MakeBigUnit(), MakeJump(), MakePlanet(), and MakeSmallUnit().
Definition at line 452 of file galaxy_gen.cpp.
References compactness, grand(), StarSystemGent::Vector::i, i, StarSystemGent::Vector::j, jumpcompactness, StarSystemGent::Vector::k, rnd(), and Vector.
Referenced by generateAndUpdateRS().
Definition at line 379 of file galaxy_gen.cpp.
References clamp01(), and grand().
Referenced by StarColor().
string StarSystemGent::getGenericName | ( | vector< string > & | s) |
string StarSystemGent::getJumpTo | ( | const string & | s) |
Definition at line 582 of file galaxy_gen.cpp.
Referenced by MakeBigUnit(), and MakeJump().
string StarSystemGent::GetNebFile | ( | string & | input) |
string StarSystemGent::getRandName | ( | vector< string > & | s) |
Definition at line 95 of file galaxy_gen.cpp.
References i, k, nada, and rnd().
Referenced by CreateStarSystem(), MakeBigUnit(), MakeJump(), MakePlanet(), and MakeSmallUnit().
Definition at line 406 of file galaxy_gen.cpp.
References VegaConfig::getVariable(), XMLSupport::parse_float(), StarColor(), and vs_config.
Referenced by AllocVerticesForSystem().
float StarSystemGent::grand | ( | ) |
Definition at line 211 of file galaxy_gen.cpp.
References float, ssrand(), and VS_RAND_MAX.
Referenced by beginStar(), CreateFirstStar(), CreateLight(), generateCenter(), getcolor(), LengthOfYear(), MakeJump(), MakeJumps(), MakeMoons(), MakePlanet(), makeRS(), and pushDown().
Definition at line 413 of file galaxy_gen.cpp.
References a, grand(), M_PI, StarSystemGent::Vector::Mag(), maxspeed, minspeed, mmax(), and speed.
Referenced by beginStar(), MakeBigUnit(), MakeJump(), MakePlanet(), and WriteUnit().
void StarSystemGent::MakeBigUnit | ( | int | callingentitytype, |
string | name = string() , |
||
float | orbitalradius = 0 |
||
) |
Definition at line 726 of file galaxy_gen.cpp.
References AnalyzeType(), center, first(), generateAndUpdateRS(), getJumpTo(), getRandName(), i, jumps, LengthOfYear(), MakeJump(), naturalphenomena, numnaturalphenomena, parseBigUnit(), S, size, STAR, starin(), and WriteUnit().
Referenced by beginStar().
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.
References center, f, faction, generateAndUpdateRS(), getJumpTo(), getRandName(), getStarSystemName(), grand(), StarSystemGent::Vector::i, StarSystemGent::Vector::j, jumps, StarSystemGent::Vector::k, LengthOfYear(), VSFileSystem::LookForFile(), StarSystemGent::Vector::Mag(), mmax(), VSFileSystem::Ok, R, S, Tab(), VSFileSystem::TextureFile, and Updateradii().
Referenced by MakeBigUnit(), MakeJumps(), and MakePlanet().
Definition at line 1003 of file galaxy_gen.cpp.
References grand(), i, and MakeJump().
Referenced by beginStar(), and MakePlanet().
Definition at line 1008 of file galaxy_gen.cpp.
References grand(), MakePlanet(), MOON, moonlevel, StarSystemGent::PlanetInfo::name, StarSystemGent::PlanetInfo::num, StarSystemGent::PlanetInfo::numjumps, StarSystemGent::PlanetInfo::numstarbases, PLANET, planetoffset, STAR, staroffset, stars, StarSystemGent::PlanetInfo::technique, and StarSystemGent::PlanetInfo::unitname.
Referenced by beginStar(), and MakePlanet().
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.
References _Universe, a, b, center, f, g, generateAndUpdateRS(), Universe::getGalaxy(), GalaxyXML::Galaxy::getPlanetVariable(), getRandName(), VegaConfig::getVariable(), GetWrapXY(), grand(), StarSystemGent::Vector::i, i, StarSystemGent::Vector::j, UnitXML::JUMP, StarSystemGent::Vector::k, LengthOfYear(), StarSystemGent::Vector::Mag(), MakeJump(), MakeJumps(), MakeMoons(), makeRS(), MakeSmallUnit(), MOON, moonlevel, CommXML::NAME, names, XMLSupport::parse_float(), PLANET, radii, rings, rnd(), Tab(), XMLSupport::tostring(), vs_config, and xmllevel.
Referenced by MakeMoons().
Definition at line 468 of file galaxy_gen.cpp.
References compactness, StarSystemGent::Vector::Cross(), grand(), StarSystemGent::Vector::i, i, StarSystemGent::Vector::j, jumpcompactness, k, StarSystemGent::Vector::k, StarSystemGent::Vector::Mag(), mmax(), rnd(), and Vector.
Referenced by generateAndUpdateRS(), and MakePlanet().
void StarSystemGent::MakeSmallUnit | ( | ) |
Definition at line 654 of file galaxy_gen.cpp.
References AnalyzeType(), center, generateAndUpdateRS(), getRandName(), jumps, numstarbases, R, S, starbases, starin(), and WriteUnit().
Referenced by beginStar(), and MakePlanet().
Definition at line 76 of file galaxy_gen.cpp.
References b.
Referenced by LengthOfYear(), MakeJump(), and makeRS().
const char* StarSystemGent::noslash | ( | const char * | in) |
vector< string > StarSystemGent::parseBigUnit | ( | const string & | input) |
void StarSystemGent::readColorGrads | ( | vector< string > & | entity, |
const char * | file | ||
) |
Definition at line 342 of file galaxy_gen.cpp.
References StarSystemGent::GradColor::b, VSFileSystem::VSFile::Close(), colorGradiant, VSFileSystem::VSFile::Eof(), f, StarSystemGent::GradColor::g, g, VegaConfig::getVariable(), input_buffer, StarSystemGent::GradColor::minrad, VSFileSystem::Ok, VSFileSystem::VSFile::OpenReadOnly(), XMLSupport::parse_float(), StarSystemGent::GradColor::r, VSFileSystem::VSFile::ReadLine(), VSFileSystem::UniverseFile, StarSystemGent::GradColor::variance, and vs_config.
Referenced by generateStarSystem(), and whichGradColor().
void StarSystemGent::readentity | ( | vector< string > & | entity, |
const char * | filename | ||
) |
warning... obvious vulnerability
Definition at line 1134 of file galaxy_gen.cpp.
References VSFileSystem::VSFile::Close(), f, VSFileSystem::VSFile::Fscanf(), input_buffer, VSFileSystem::Ok, VSFileSystem::VSFile::OpenReadOnly(), and VSFileSystem::UniverseFile.
Referenced by generateStarSystem().
void StarSystemGent::ResetGlobalVariables | ( | ) |
Definition at line 314 of file galaxy_gen.cpp.
References background, colorGradiant, compactness, faction, gradtex, jumpcompactness, jumps, lights, moonlevel, names, naturalphenomena, numnaturalphenomena, numstarbases, numstarentities, planetoffset, radii, rings, starbases, starentities, staroffset, starradius, stars, systemname, and xmllevel.
Referenced by generateStarSystem().
Definition at line 81 of file galaxy_gen.cpp.
References ssrand().
Definition at line 398 of file galaxy_gen.cpp.
References b, StarSystemGent::GradColor::b, StarSystemGent::GradColor::g, g, getcolor(), StarSystemGent::GradColor::r, StarSystemGent::GradColor::variance, and whichGradColor().
Referenced by CreateLight(), and getStarColorFromRadius().
string StarSystemGent::starin | ( | const string & | input) |
Definition at line 590 of file galaxy_gen.cpp.
References i.
Referenced by MakeBigUnit(), and MakeSmallUnit().
|
static |
Definition at line 219 of file galaxy_gen.cpp.
References f, i, and xmllevel.
Referenced by beginStar(), CreateStarSystem(), endStar(), MakeJump(), MakePlanet(), Tab(), XMLnode::Write(), WriteLight(), and WriteUnit().
Definition at line 516 of file galaxy_gen.cpp.
References radii.
Referenced by generateAndUpdateRS(), and MakeJump().
Definition at line 383 of file galaxy_gen.cpp.
References colorGradiant, i, and readColorGrads().
Referenced by StarColor().
void StarSystemGent::WriteLight | ( | unsigned int | i) |
Definition at line 229 of file galaxy_gen.cpp.
References b, difffunc(), f, g, VegaConfig::getVariable(), lights, XMLSupport::parse_float(), Tab(), vs_config, and xmllevel.
Referenced by CreateLight().
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.
References f, faction, StarSystemGent::Vector::i, StarSystemGent::Vector::j, StarSystemGent::Vector::k, LengthOfYear(), and Tab().
Referenced by MakeBigUnit(), and MakeSmallUnit().
vector< string > StarSystemGent::background |
Definition at line 272 of file galaxy_gen.cpp.
Referenced by CreateStarSystem(), RText::draw_text(), generateStarSystem(), and ResetGlobalVariables().
vector< GradColor > StarSystemGent::colorGradiant |
Definition at line 282 of file galaxy_gen.cpp.
Referenced by readColorGrads(), ResetGlobalVariables(), and whichGradColor().
float StarSystemGent::compactness = 2 |
Definition at line 283 of file galaxy_gen.cpp.
Referenced by generateCenter(), generateStarSystem(), makeRS(), and ResetGlobalVariables().
VSFile StarSystemGent::f |
Definition at line 216 of file galaxy_gen.cpp.
string StarSystemGent::faction |
Definition at line 281 of file galaxy_gen.cpp.
Referenced by AddMeshes(), AddSubUnits(), FactionUtil::AdjustIntRelation(), Faction::beginElement(), StarSystem::Statistics::CheckVitals(), CreateGameTurret(), CreateGenericTurret(), UnitFactory::createUnit(), HaloSystem::Draw(), GameUnit< UnitType >::Draw(), GameUnit< UnitType >::DrawNow(), NavigationSystem::DrawSystem(), Unit::EjectCargo(), GameUnit< UnitType >::Explode(), Unit::FilterDowngradeList(), generateStarSystem(), FactionUtil::GetAnimation(), FactionUtil::GetContraband(), FactionUtil::GetConversation(), StarDate::GetCurrentStarTime(), StarDate::GetElapsedStarTime(), FactionUtil::getForceLogo(), FactionUtil::GetNumAnimation(), FactionUtil::GetRandCommAnimation(), FactionUtil::getSquadLogo(), getStaticAsteroidFlightgroup(), getStaticBaseFlightgroup(), getStaticNebulaFlightgroup(), getStaticStarFlightgroup(), getStaticUnknownFlightgroup(), GetWarpMesh(), MeshAnimation::Init(), FactionUtil::isCitizenInt(), CriteriaOwnedBy::isDestination(), LaunchOneParticle(), Mesh::LoadMeshes(), FactionUtil::LoadSerializedFaction(), loadUnitByCache(), LookupUnitRow(), makeBlankUpgrade(), MakeJump(), makeTemplateUpgrade(), Mesh::Mesh(), Faction::ParseAllAllies(), Faction::ParseAllies(), UnitFactory::parseAsteroidBuffer(), UnitFactory::parseMissileBuffer(), UnitFactory::parseNebulaBuffer(), UnitFactory::parsePlanetBuffer(), UnitFactory::parseUnitBuffer(), fg_util::PurgeZeroShips(), Unit::reactToCollision(), Unit::RepairUpgrade(), ResetGlobalVariables(), ScoreKill(), FactionUtil::SerializeFaction(), Unit::SetFaction(), SaveGame::SetPlayerFaction(), setStaticFlightgroup(), GameUnit< UnitType >::Split(), BaseComputer::SellUpgradeOperation::start(), Unit::Upgrade(), and WriteUnit().
vector< string > StarSystemGent::gradtex |
Definition at line 266 of file galaxy_gen.cpp.
Referenced by CreateLight(), generateStarSystem(), and ResetGlobalVariables().
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.
Referenced by generateCenter(), generateStarSystem(), makeRS(), and ResetGlobalVariables().
vector< string > StarSystemGent::jumps |
Definition at line 265 of file galaxy_gen.cpp.
Referenced by beginStar(), CreateCargoForOwnerStarship(), generateStarSystem(), MakeBigUnit(), MakeJump(), MakeSmallUnit(), readplanetentity(), and ResetGlobalVariables().
vector< Color > StarSystemGent::lights |
Definition at line 215 of file galaxy_gen.cpp.
Referenced by beginStar(), CreateLight(), GamePlanet::DisableLights(), GamePlanet::Draw(), GamePlanet::EnableLights(), GamePlanet::Kill(), UnitFactory::parsePlanetBuffer(), ResetGlobalVariables(), and WriteLight().
const float StarSystemGent::maxspeed = 8 |
Definition at line 279 of file galaxy_gen.cpp.
Referenced by LengthOfYear(), useJitteryAutopilot(), and GameUnit< UnitType >::WarpMatrix().
const float StarSystemGent::minspeed = .001 |
Definition at line 278 of file galaxy_gen.cpp.
Referenced by LengthOfYear().
const int StarSystemGent::MOON = 2 |
Definition at line 260 of file galaxy_gen.cpp.
Referenced by MakeMoons(), and MakePlanet().
unsigned int StarSystemGent::moonlevel |
Definition at line 312 of file galaxy_gen.cpp.
Referenced by MakeMoons(), MakePlanet(), and ResetGlobalVariables().
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.
Referenced by getGenericName(), and getRandName().
vector< string > StarSystemGent::names |
Definition at line 273 of file galaxy_gen.cpp.
Referenced by Faction::beginElement(), generateStarSystem(), main(), MakePlanet(), and ResetGlobalVariables().
vector< string > StarSystemGent::naturalphenomena |
Definition at line 267 of file galaxy_gen.cpp.
Referenced by generateStarSystem(), MakeBigUnit(), and ResetGlobalVariables().
unsigned int StarSystemGent::numnaturalphenomena |
Definition at line 270 of file galaxy_gen.cpp.
Referenced by beginStar(), generateStarSystem(), MakeBigUnit(), and ResetGlobalVariables().
unsigned int StarSystemGent::numstarbases |
Definition at line 269 of file galaxy_gen.cpp.
Referenced by generateStarSystem(), MakeSmallUnit(), readplanetentity(), and ResetGlobalVariables().
unsigned int StarSystemGent::numstarentities |
Definition at line 271 of file galaxy_gen.cpp.
Referenced by beginStar(), CreateFirstStar(), CreateLight(), CreatePrimaries(), generateStarSystem(), and ResetGlobalVariables().
const int StarSystemGent::PLANET = 1 |
Definition at line 259 of file galaxy_gen.cpp.
Referenced by GalaxyXML::beginElement(), GalaxyXML::endElement(), MakeMoons(), and MakePlanet().
unsigned int StarSystemGent::planetoffset |
Definition at line 312 of file galaxy_gen.cpp.
Referenced by beginStar(), MakeMoons(), and ResetGlobalVariables().
vector< float > StarSystemGent::radii |
Definition at line 277 of file galaxy_gen.cpp.
Referenced by beginStar(), Audio::Test::EngParticleListener::computePosition(), Audio::Test::EngParticleListener::computeVelocity(), endStar(), generateAndUpdateRS(), MakePlanet(), ResetGlobalVariables(), Audio::Test::testComplexScene(), and Updateradii().
vector< string > StarSystemGent::rings |
Definition at line 274 of file galaxy_gen.cpp.
Referenced by generateStarSystem(), MakePlanet(), and ResetGlobalVariables().
const int StarSystemGent::STAR = 0 |
Definition at line 258 of file galaxy_gen.cpp.
Referenced by beginStar(), MakeBigUnit(), and MakeMoons().
vector< string > StarSystemGent::starbases |
Definition at line 268 of file galaxy_gen.cpp.
Referenced by generateStarSystem(), MakeSmallUnit(), and ResetGlobalVariables().
vector< string > StarSystemGent::starentities |
Definition at line 264 of file galaxy_gen.cpp.
Referenced by beginStar(), CreateLight(), and ResetGlobalVariables().
unsigned int StarSystemGent::staroffset |
Definition at line 312 of file galaxy_gen.cpp.
Referenced by beginStar(), CreateFirstStar(), MakeMoons(), and ResetGlobalVariables().
vector< float > StarSystemGent::starradius |
Definition at line 280 of file galaxy_gen.cpp.
Referenced by beginStar(), CreateLight(), CreateStarSystem(), generateAndUpdateRS(), generateStarSystem(), and ResetGlobalVariables().
vector< StarInfo > StarSystemGent::stars |
Definition at line 311 of file galaxy_gen.cpp.
Referenced by beginStar(), generateStarSystem(), MakeMoons(), and ResetGlobalVariables().
string StarSystemGent::systemname |
Definition at line 276 of file galaxy_gen.cpp.
Referenced by beginStar(), CreateStarSystem(), NavigationSystem::DrawGalaxy(), NavigationSystem::DrawSystem(), generateStarSystem(), CriteriaSector::isDestination(), and ResetGlobalVariables().
int StarSystemGent::xmllevel |
Definition at line 217 of file galaxy_gen.cpp.
Referenced by beginStar(), CreateStarSystem(), endStar(), MakePlanet(), ResetGlobalVariables(), Tab(), and WriteLight().