Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <galaxy_xml.h>
Public Member Functions | |
const string & | getPlanetNameFromInitial (const string &abbrev) const |
const string & | getPlanetNameFromTexture (const string &tex) const |
const string & | getPlanetVariable (const string &name, const string &defaultvalue) const |
const string & | getPlanetVariable (const string &planet, const string &name, const string &defaultvalue) const |
void | writeGalaxy (VSFileSystem::VSFile &f) const |
SGalaxy * | getPlanetTypes () |
bool | setPlanetVariable (const string &name, const string &value) |
void | addPlanetSection (const std::vector< string > §ion) |
bool | setPlanetVariable (const string &planet, const string &name, const string &value) |
Galaxy () | |
Galaxy (const char *configfile) | |
Galaxy (const SGalaxy &g) | |
![]() | |
SGalaxy () | |
SGalaxy (const char *configfile) | |
SGalaxy (const SGalaxy &g) | |
void | writeGalaxy (VSFileSystem::VSFile &f) const |
void | writeSector (VSFileSystem::VSFile &f, int tabs, const string §orType, SGalaxy *planet_types) const |
void | processGalaxy (const string &sys) |
void | processSystem (const string &sys, const QVector &suggested_coordinates) |
~SGalaxy () | |
const string & | getVariable (const std::vector< string > §ion, const string &name, const string &default_value) const |
const string & | getRandSystem (const string §ion, const string &default_value) const |
const string & | getVariable (const string §ion, const string &name, const string &defaultvalue) const |
const string & | getVariable (const string §ion, const string &subsection, const string &name, const string &defaultvalue) const |
bool | setVariable (const string §ion, const string &name, const string &value) |
bool | setVariable (const string §ion, const string &subsection, const string &name, const string &value) |
void | addSection (const std::vector< string > §ion) |
void | setVariable (const std::vector< string > §ion, const string &name, const string &value) |
SubHeirarchy & | getHeirarchy () |
const std::string & | operator[] (const std::string &s) const |
Additional Inherited Members | |
![]() | |
SGalaxy & | operator= (const SGalaxy &a) |
![]() | |
class SubHeirarchy * | subheirarchy |
StringMap | data |
Definition at line 59 of file galaxy_xml.h.
|
inline |
Definition at line 96 of file galaxy_xml.h.
References GalaxyXML::SGalaxy::subheirarchy.
Galaxy::Galaxy | ( | const char * | configfile) |
Definition at line 538 of file galaxy_xml.cpp.
Galaxy::Galaxy | ( | const SGalaxy & | g) |
Definition at line 533 of file galaxy_xml.cpp.
void GalaxyXML::Galaxy::addPlanetSection | ( | const std::vector< string > & | section) |
|
inline |
Definition at line 69 of file galaxy_xml.h.
Referenced by readplanetentity().
|
inline |
Definition at line 79 of file galaxy_xml.h.
Referenced by Planet::getHumanReadablePlanetType().
SGalaxy * Galaxy::getPlanetTypes | ( | ) |
Definition at line 310 of file galaxy_xml.cpp.
const string & Galaxy::getPlanetVariable | ( | const string & | name, |
const string & | defaultvalue | ||
) | const |
Definition at line 446 of file galaxy_xml.cpp.
References j.
Referenced by CriteriaContains::isDestination(), StarSystemGent::MakePlanet(), and readplanetentity().
const string & Galaxy::getPlanetVariable | ( | const string & | planet, |
const string & | name, | ||
const string & | defaultvalue | ||
) | const |
Definition at line 426 of file galaxy_xml.cpp.
References GalaxyXML::SGalaxy::data, g, i, j, second(), and GalaxyXML::SGalaxy::subheirarchy.
bool Galaxy::setPlanetVariable | ( | const string & | name, |
const string & | value | ||
) |
Definition at line 410 of file galaxy_xml.cpp.
bool Galaxy::setPlanetVariable | ( | const string & | planet, |
const string & | name, | ||
const string & | value | ||
) |
Definition at line 418 of file galaxy_xml.cpp.
void Galaxy::writeGalaxy | ( | VSFileSystem::VSFile & | f) | const |
Definition at line 249 of file galaxy_xml.cpp.
References VSFileSystem::VSFile::Fprintf(), and GalaxyXML::SGalaxy::writeSector().