00001 // solarsys.h 00002 // 00003 // Copyright (C) 2001 Chris Laurel <claurel@shatters.net> 00004 // 00005 // This program is free software; you can redistribute it and/or 00006 // modify it under the terms of the GNU General Public License 00007 // as published by the Free Software Foundation; either version 2 00008 // of the License, or (at your option) any later version. 00009 00010 #ifndef _SOLARSYS_H_ 00011 #define _SOLARSYS_H_ 00012 00013 #include <vector> 00014 #include <map> 00015 #include <iostream> 00016 #include <celengine/body.h> 00017 #include <celengine/stardb.h> 00018 00019 00020 class SolarSystem 00021 { 00022 public: 00023 SolarSystem(Star*); 00024 00025 Star* getStar() const; 00026 Point3f getCenter() const; 00027 PlanetarySystem* getPlanets() const; 00028 00029 private: 00030 PlanetarySystem* planets; 00031 Star* star; 00032 }; 00033 00034 typedef std::map<uint32, SolarSystem*> SolarSystemCatalog; 00035 00036 class Universe; 00037 00038 bool LoadSolarSystemObjects(std::istream& in, 00039 Universe& universe, 00040 const std::string& dir = ""); 00041 00042 #endif // _SOLARSYS_H_ 00043
1.4.1