|
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | ****************************************************************************/ |
20 | 20 | #include <Spore\Simulator\SubSystem\StarManager.h> |
| 21 | +#include <Spore\Simulator\SubSystem\SpaceGfx.h> |
| 22 | +#include <Spore\Simulator\SpaceConstants.h> |
21 | 23 |
|
22 | 24 | namespace Simulator |
23 | 25 | { |
@@ -107,25 +109,72 @@ namespace Simulator |
107 | 109 |
|
108 | 110 | auto_METHOD_VOID_(cStarManager, GenerateSolSystem); |
109 | 111 |
|
| 112 | + auto_METHOD_VOID(cStarManager, RequirePlanetsForStar, |
| 113 | + Args(cStarRecord* pStarRecord, StarRequestFilter* pFilter), |
| 114 | + Args(pStarRecord, pFilter)); |
| 115 | + |
| 116 | + auto_METHOD_VOID(cStarManager, GeneratePlanetsForStar, |
| 117 | + Args(cStarRecord* pStarRecord, StarRequestFilter* pFilter, bool arg), |
| 118 | + Args(pStarRecord, pFilter, arg)); |
| 119 | + |
110 | 120 | auto_STATIC_METHOD(cStarManager, bool, StarGenerationMessageHandler, |
111 | 121 | Args(uint32_t messageId, Swarm::Components::DistributeEffectMessageData* pDistributeData, StarType starType), |
112 | 122 | Args(messageId, pDistributeData, starType)); |
113 | 123 |
|
114 | 124 |
|
115 | | - cPlanetRecord* PlanetID::GetRecord() |
| 125 | + cPlanetRecord* PlanetID::GetRecord() const |
116 | 126 | { |
117 | 127 | return StarManager.GetPlanetRecord(*this); |
118 | 128 | } |
119 | 129 |
|
120 | | - cStarRecord* StarID::GetRecord() |
| 130 | + cStarRecord* StarID::GetRecord() const |
121 | 131 | { |
122 | 132 | return StarManager.GetStarRecord(*this); |
123 | 133 | } |
| 134 | + |
| 135 | + |
| 136 | + |
| 137 | + auto_STATIC_METHOD_(cSpaceGfx, cSpaceGfx*, Get); |
| 138 | + auto_METHOD_VOID_(cSpaceGfx, InitializeInternal); |
| 139 | + auto_METHOD_VOID_(cSpaceGfx, DisposeInternal); |
124 | 140 | } |
125 | 141 |
|
126 | 142 | auto_STATIC_METHOD_VOID(Simulator, SpaceTeleportTo, Args(cStarRecord* star), Args(star)); |
127 | 143 |
|
128 | 144 | auto_STATIC_METHOD(Simulator, Vector3&, GalaxyCoordinatesTo3D, |
129 | 145 | Args(float parsecDistance, float angle, Vector3& dst), Args(parsecDistance, angle, dst)); |
130 | 146 |
|
| 147 | + |
| 148 | +auto_STATIC_METHOD_VOID(Simulator, GetBinarySystemStarTypes, |
| 149 | + Args(Simulator::StarType binaryType, Simulator::StarType& star1, Simulator::StarType& star2), |
| 150 | + Args(binaryType, star1, star2)); |
| 151 | + |
| 152 | +auto_STATIC_METHOD(Simulator, float, GetBinarySystemBaseRadius, |
| 153 | + Args(Simulator::StarType binaryType), Args(binaryType)); |
| 154 | + |
| 155 | +auto_STATIC_METHOD(Simulator, float, GetSolarStarTemperature, |
| 156 | + Args(Simulator::StarType starType), Args(starType)); |
| 157 | + |
| 158 | +auto_STATIC_METHOD(Simulator, float, GetSolarStarMass, |
| 159 | + Args(Simulator::StarType starType), Args(starType)); |
| 160 | + |
| 161 | +auto_STATIC_METHOD(Simulator, float, GetSolarStarRadius, |
| 162 | + Args(Simulator::StarType starType), Args(starType)); |
| 163 | + |
| 164 | +auto_STATIC_METHOD(Simulator, float, GetSolarStarRotationRate, |
| 165 | + Args(Simulator::StarType starType), Args(starType)); |
| 166 | + |
| 167 | +auto_STATIC_METHOD(Simulator, float, GetSolarStarOrbitRadius, |
| 168 | + Args(Simulator::StarType starType, Simulator::SolarSystemOrbitTemperature orbitTemperature), |
| 169 | + Args(starType, orbitTemperature)); |
| 170 | + |
| 171 | +auto_STATIC_METHOD(Simulator, Simulator::PlanetTemperatureType, GetPlanetTemperatureType, |
| 172 | + Args(float temperatureScore), Args(temperatureScore)); |
| 173 | + |
| 174 | +auto_STATIC_METHOD(Simulator, bool, IsBinaryStar, |
| 175 | + Args(Simulator::StarType starType), Args(starType)); |
| 176 | + |
| 177 | +auto_STATIC_METHOD(Simulator, bool, IsNotStarOrBinaryStar, |
| 178 | + Args(Simulator::StarType starType), Args(starType)); |
| 179 | + |
131 | 180 | #endif |
0 commit comments