00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include "sparse-array-node.hpp"
00025 #include "star.hpp"
00026
00027
00028
00029 #ifndef _PARSEC_HPP_
00030 #define _PARSEC_HPP_
00031 #include "main-planet.hpp"
00032 #define NATURE_SOLO 1
00033 #define NATURE_BINARY 2
00034 #define NATURE_TRINARY 3
00035
00048 class parsec: public sparseArrayNode
00049 {
00050 public:
00051
00055 parsec();
00056
00063 parsec(int row,int column);
00064
00071 mainPlanet* getMainPlanet();
00072
00079 void setMainPlanet(mainPlanet* p);
00080
00086 char *asText();
00087
00088 protected:
00089
00090 private:
00091
00092
00093 star* primaryStar;
00094 mainPlanet* main_planet;
00095
00096 int systemNature;
00097
00098 void primaryGeneration();
00099
00100 };
00101
00102 #endif // _PARSEC_HPP_