Starshatter_Open
Open source Starshatter engine
|
#include <StarSystem.h>
Public Member Functions | |
StarSystem (const char *name, Point loc, int iff=0, int s=4) | |
virtual | ~StarSystem () |
int | operator== (const StarSystem &s) const |
virtual void | Load () |
virtual void | Create () |
virtual void | Destroy () |
virtual void | Activate (Scene &scene) |
virtual void | Deactivate () |
virtual void | ExecFrame () |
const char * | Name () const |
const char * | Govt () const |
const char * | Description () const |
int | Affiliation () const |
int | Sequence () const |
Point | Location () const |
int | NumStars () const |
int | NumDust () const |
Color | Ambient () const |
List< OrbitalBody > & | Bodies () |
List< OrbitalRegion > & | Regions () |
List< OrbitalRegion > & | AllRegions () |
OrbitalRegion * | ActiveRegion () |
Orbital * | FindOrbital (const char *name) |
OrbitalRegion * | FindRegion (const char *name) |
void | SetActiveRegion (OrbitalRegion *rgn) |
double | Radius () const |
void | SetSunlight (Color color, double brightness=1) |
void | SetBacklight (Color color, double brightness=1) |
void | RestoreTrueSunColor () |
bool | HasLinkTo (StarSystem *s) const |
const Text & | GetDataPath () const |
Static Public Member Functions | |
static const char * | TYPENAME () |
static void | SetBaseTime (double t, bool absolute=false) |
static double | GetBaseTime () |
static double | Stardate () |
static void | CalcStardate () |
Protected Member Functions | |
void | ParseStar (TermStruct *val) |
void | ParsePlanet (TermStruct *val) |
void | ParseMoon (TermStruct *val) |
void | ParseRegion (TermStruct *val) |
void | ParseTerrain (TermStruct *val) |
void | ParseLayer (TerrainRegion *rgn, TermStruct *val) |
void | CreateBody (OrbitalBody &body) |
Point | TerrainTransform (const Point &loc) |
Protected Attributes | |
char | filename [64] |
Text | name |
Text | govt |
Text | description |
Text | datapath |
int | affiliation |
int | seq |
Point | loc |
double | radius |
bool | instantiated |
int | sky_stars |
int | sky_dust |
Text | sky_poly_stars |
Text | sky_nebula |
Text | sky_haze |
double | sky_uscale |
double | sky_vscale |
Color | ambient |
Color | sun_color |
double | sun_brightness |
double | sun_scale |
List< Light > | sun_lights |
List< Light > | back_lights |
Graphic * | point_stars |
Solid * | poly_stars |
Solid * | nebula |
Solid * | haze |
List< OrbitalBody > | bodies |
List< OrbitalRegion > | regions |
List< OrbitalRegion > | all_regions |
Orbital * | center |
OrbitalRegion * | active_region |
Point | tvpn |
Point | tvup |
Point | tvrt |
Static Protected Attributes | |
static double | stardate = 0 |
Definition at line 40 of file StarSystem.h.
StarSystem::StarSystem | ( | const char * | name, |
Point | loc, | ||
int | iff = 0 , |
||
int | s = 4 |
||
) |
Definition at line 105 of file StarSystem.cpp.
|
virtual |
Definition at line 117 of file StarSystem.cpp.
|
virtual |
Definition at line 1197 of file StarSystem.cpp.
|
inline |
Definition at line 74 of file StarSystem.h.
|
inline |
Definition at line 64 of file StarSystem.h.
|
inline |
Definition at line 73 of file StarSystem.h.
Color StarSystem::Ambient | ( | ) | const |
Definition at line 1712 of file StarSystem.cpp.
|
inline |
Definition at line 71 of file StarSystem.h.
|
static |
Definition at line 78 of file StarSystem.cpp.
|
virtual |
Definition at line 980 of file StarSystem.cpp.
|
protected |
Definition at line 1058 of file StarSystem.cpp.
|
virtual |
Definition at line 1267 of file StarSystem.cpp.
|
inline |
Definition at line 63 of file StarSystem.h.
|
virtual |
Definition at line 1159 of file StarSystem.cpp.
|
virtual |
Definition at line 1407 of file StarSystem.cpp.
Orbital * StarSystem::FindOrbital | ( | const char * | name | ) |
Definition at line 1607 of file StarSystem.cpp.
OrbitalRegion * StarSystem::FindRegion | ( | const char * | name | ) |
Definition at line 1660 of file StarSystem.cpp.
|
static |
Definition at line 73 of file StarSystem.cpp.
|
inline |
Definition at line 91 of file StarSystem.h.
|
inline |
Definition at line 62 of file StarSystem.h.
bool StarSystem::HasLinkTo | ( | StarSystem * | s | ) | const |
Definition at line 1677 of file StarSystem.cpp.
|
virtual |
Definition at line 140 of file StarSystem.cpp.
|
inline |
Definition at line 66 of file StarSystem.h.
|
inline |
Definition at line 61 of file StarSystem.h.
|
inline |
Definition at line 68 of file StarSystem.h.
|
inline |
Definition at line 67 of file StarSystem.h.
|
inline |
Definition at line 48 of file StarSystem.h.
|
protected |
Definition at line 951 of file StarSystem.cpp.
|
protected |
Definition at line 547 of file StarSystem.cpp.
|
protected |
Definition at line 402 of file StarSystem.cpp.
|
protected |
Definition at line 659 of file StarSystem.cpp.
|
protected |
Definition at line 312 of file StarSystem.cpp.
|
protected |
Definition at line 728 of file StarSystem.cpp.
|
inline |
Definition at line 85 of file StarSystem.h.
|
inline |
Definition at line 72 of file StarSystem.h.
void StarSystem::RestoreTrueSunColor | ( | ) |
Definition at line 1760 of file StarSystem.cpp.
|
inline |
Definition at line 65 of file StarSystem.h.
void StarSystem::SetActiveRegion | ( | OrbitalRegion * | rgn | ) |
Definition at line 1316 of file StarSystem.cpp.
void StarSystem::SetBacklight | ( | Color | color, |
double | brightness = 1 |
||
) |
Definition at line 1749 of file StarSystem.cpp.
|
static |
Definition at line 57 of file StarSystem.cpp.
void StarSystem::SetSunlight | ( | Color | color, |
double | brightness = 1 |
||
) |
Definition at line 1729 of file StarSystem.cpp.
|
inlinestatic |
Definition at line 83 of file StarSystem.h.
Definition at line 1698 of file StarSystem.cpp.
|
inlinestatic |
Definition at line 43 of file StarSystem.h.
|
protected |
Definition at line 140 of file StarSystem.h.
|
protected |
Definition at line 109 of file StarSystem.h.
|
protected |
Definition at line 137 of file StarSystem.h.
|
protected |
Definition at line 123 of file StarSystem.h.
Definition at line 128 of file StarSystem.h.
|
protected |
Definition at line 135 of file StarSystem.h.
|
protected |
Definition at line 139 of file StarSystem.h.
|
protected |
Definition at line 108 of file StarSystem.h.
|
protected |
Definition at line 107 of file StarSystem.h.
|
protected |
Definition at line 104 of file StarSystem.h.
|
protected |
Definition at line 106 of file StarSystem.h.
|
protected |
Definition at line 133 of file StarSystem.h.
|
protected |
Definition at line 114 of file StarSystem.h.
|
protected |
Definition at line 111 of file StarSystem.h.
|
protected |
Definition at line 105 of file StarSystem.h.
|
protected |
Definition at line 132 of file StarSystem.h.
|
protected |
Definition at line 130 of file StarSystem.h.
|
protected |
Definition at line 131 of file StarSystem.h.
|
protected |
Definition at line 113 of file StarSystem.h.
|
protected |
Definition at line 136 of file StarSystem.h.
|
protected |
Definition at line 110 of file StarSystem.h.
|
protected |
Definition at line 117 of file StarSystem.h.
|
protected |
Definition at line 120 of file StarSystem.h.
|
protected |
Definition at line 119 of file StarSystem.h.
|
protected |
Definition at line 118 of file StarSystem.h.
|
protected |
Definition at line 116 of file StarSystem.h.
|
protected |
Definition at line 121 of file StarSystem.h.
|
protected |
Definition at line 122 of file StarSystem.h.
|
staticprotected |
Definition at line 112 of file StarSystem.h.
|
protected |
Definition at line 125 of file StarSystem.h.
|
protected |
Definition at line 124 of file StarSystem.h.
Definition at line 127 of file StarSystem.h.
|
protected |
Definition at line 126 of file StarSystem.h.
|
protected |
Definition at line 142 of file StarSystem.h.
|
protected |
Definition at line 142 of file StarSystem.h.
|
protected |
Definition at line 142 of file StarSystem.h.