Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

simulation.cpp File Reference

#include <algorithm>
#include "simulation.h"

Include dependency graph for simulation.cpp:

Go to the source code of this file.

Functions

static const StargetSun (Body *body)


Function Documentation

static const Star* getSun Body body  )  [static]
 

Definition at line 43 of file simulation.cpp.

References PlanetarySystem::getStar().

Referenced by Simulation::selectPlanet().

00044 {
00045     PlanetarySystem* system = body->getSystem();
00046     if (system == NULL)
00047         return NULL;
00048     else
00049         return system->getStar();
00050 }


Generated on Sat Jan 14 22:31:13 2006 for Celestia by  doxygen 1.4.1