Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <vector>
#include <string>
Go to the source code of this file.
Classes | |
struct | SystemInfo |
All the properties from the galaxy in a system. More... | |
Functions | |
std::string | getStarSystemFileName (const std::string &input) |
appends .system More... | |
std::string | getStarSystemName (const std::string &in) |
finds the name after all / characters and capitalizes the first letter More... | |
std::string | getStarSystemSector (const std::string &in) |
finds the name before the first / this is the sector name More... | |
string | getUniversePath () |
void | readnames (vector< string > &entity, const char *filename) |
void | generateStarSystem (SystemInfo &si) |
void generateStarSystem | ( | SystemInfo & | si) |
Definition at line 1344 of file galaxy_gen.cpp.
References SystemInfo::asteroids, SystemInfo::asteroidslist, StarSystemGent::background, SystemInfo::backgrounds, SystemInfo::compactness, StarSystemGent::compactness, VSFileSystem::CreateDirectoryHome(), StarSystemGent::CreateStarSystem(), f, SystemInfo::faction, StarSystemGent::faction, SystemInfo::filename, VegaConfig::getVariable(), StarSystemGent::gradtex, i, int, StarSystemGent::jumpcompactness, SystemInfo::jumps, StarSystemGent::jumps, SystemInfo::name, SystemInfo::names, StarSystemGent::names, StarSystemGent::naturalphenomena, SystemInfo::nebulae, SystemInfo::nebulaelist, StarSystemGent::numnaturalphenomena, StarSystemGent::numstarbases, StarSystemGent::numstarentities, SystemInfo::numstars, SystemInfo::numun1, SystemInfo::numun2, VSFileSystem::Ok, XMLSupport::parse_float(), XMLSupport::parse_int(), SystemInfo::planetlist, pushTowardsMean(), StarSystemGent::readColorGrads(), StarSystemGent::readentity(), readnames(), readplanetentity(), StarSystemGent::ResetGlobalVariables(), SystemInfo::ringlist, StarSystemGent::rings, SystemInfo::sector, SystemInfo::seed, seedrand(), VSFileSystem::sharedsectors, SystemInfo::smallun, StarSystemGent::starbases, StarSystemGent::starradius, SystemInfo::stars, StarSystemGent::stars, stringhash(), SystemInfo::sunradius, VSFileSystem::SystemFile, StarSystemGent::systemname, VSFileSystem::universe_name, vs_config, and VSFileSystem::vs_fprintf().
Referenced by MakeStarSystem().
std::string getStarSystemFileName | ( | const std::string & | input) |
appends .system
std::string getStarSystemName | ( | const std::string & | in) |
finds the name after all / characters and capitalizes the first letter
std::string getStarSystemSector | ( | const std::string & | in) |
finds the name before the first / this is the sector name
string getUniversePath | ( | ) |
Definition at line 56 of file galaxy.cpp.
References vs_options::universe_path.
void readnames | ( | vector< string > & | entity, |
const char * | filename | ||
) |
warning... obvious vulnerability
Definition at line 1182 of file galaxy_gen.cpp.
References VSFileSystem::VSFile::Close(), VSFileSystem::VSFile::Eof(), f, i, input_buffer, VSFileSystem::Ok, VSFileSystem::VSFile::OpenReadOnly(), VSFileSystem::VSFile::ReadLine(), and VSFileSystem::UniverseFile.
Referenced by generateStarSystem().