vegastrike  0.5.1.r1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
galaxy_gen.h
Go to the documentation of this file.
1 #ifndef _STARSYSGEN_H_
2 #define _STARSYSGEN_H_
3 #include <vector>
4 #include <string>
5 using std::string;
6 using std::vector;
7 
9 struct SystemInfo
10 {
11  string sector;
12  string name;
13  string filename;
14  float sunradius;
15  float compactness;
16  int numstars;
17  bool nebulae;
18  bool asteroids;
19  int numun1;
20  int numun2;
21  string faction;
22  string names;
23  string stars;
24  string planetlist;
25  string smallun;
26  string nebulaelist;
27  string asteroidslist;
28  string ringlist;
29  string backgrounds;
30  vector< string >jumps;
31  int seed;
32  bool force;
33 };
34 
36 std::string getStarSystemFileName( const std::string &input );
38 std::string getStarSystemName( const std::string &in );
40 std::string getStarSystemSector( const std::string &in );
41 string getUniversePath();
42 void readnames( vector< string > &entity, const char *filename );
43 void generateStarSystem( SystemInfo &si );
44 #endif
45