Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Orbital Class Reference

#include <StarSystem.h>

Inheritance diagram for Orbital:
OrbitalBody OrbitalRegion TerrainRegion

List of all members.

Public Types

enum  OrbitalType {
  NOTHING, STAR, PLANET, MOON,
  REGION, TERRAIN
}

Public Member Functions

 Orbital (StarSystem *sys, const char *n, OrbitalType t, double m, double r, double o, Orbital *p=0)
virtual ~Orbital ()
int operator== (const Orbital &o) const
int operator< (const Orbital &o) const
int operator<= (const Orbital &o) const
virtual void Update ()
Point PredictLocation (double delta_t)
const char * Name () const
OrbitalType Type () const
int SubType () const
const char * Description () const
double Mass () const
double Radius () const
double Rotation () const
double RotationPhase () const
double Orbit () const
bool Retrograde () const
double Phase () const
double Period () const
Point Location () const
GraphicRep () const
const BitmapGetMapIcon () const
void SetMapIcon (const Bitmap &img)
StarSystemSystem () const
OrbitalPrimary () const
ListIter< OrbitalRegionRegions ()

Static Public Member Functions

static const char * TYPENAME ()

Protected Attributes

Text name
OrbitalType type
int subtype
Text description
double mass
double radius
double rotation
double theta
double orbit
double phase
double period
double velocity
Point loc
bool retro
Graphicrep
Bitmap map_icon
StarSystemsystem
Orbitalprimary
List< OrbitalRegionregions

Friends

class StarSystem

Detailed Description

Definition at line 178 of file StarSystem.h.


Member Enumeration Documentation

Enumerator:
NOTHING 
STAR 
PLANET 
MOON 
REGION 
TERRAIN 

Definition at line 185 of file StarSystem.h.


Constructor & Destructor Documentation

Orbital::Orbital ( StarSystem sys,
const char *  n,
OrbitalType  t,
double  m,
double  r,
double  o,
Orbital p = 0 
)

Definition at line 1836 of file StarSystem.cpp.

Orbital::~Orbital ( )
virtual

Definition at line 1851 of file StarSystem.cpp.


Member Function Documentation

const char* Orbital::Description ( ) const
inline

Definition at line 203 of file StarSystem.h.

const Bitmap& Orbital::GetMapIcon ( ) const
inline

Definition at line 215 of file StarSystem.h.

Point Orbital::Location ( ) const
inline

Definition at line 212 of file StarSystem.h.

double Orbital::Mass ( ) const
inline

Definition at line 204 of file StarSystem.h.

const char* Orbital::Name ( ) const
inline

Definition at line 199 of file StarSystem.h.

int Orbital::operator< ( const Orbital o) const
inline

Definition at line 191 of file StarSystem.h.

int Orbital::operator<= ( const Orbital o) const
inline

Definition at line 192 of file StarSystem.h.

int Orbital::operator== ( const Orbital o) const
inline

Definition at line 190 of file StarSystem.h.

double Orbital::Orbit ( ) const
inline

Definition at line 208 of file StarSystem.h.

double Orbital::Period ( ) const
inline

Definition at line 211 of file StarSystem.h.

double Orbital::Phase ( ) const
inline

Definition at line 210 of file StarSystem.h.

Point Orbital::PredictLocation ( double  delta_t)

Definition at line 1884 of file StarSystem.cpp.

Orbital* Orbital::Primary ( ) const
inline

Definition at line 219 of file StarSystem.h.

double Orbital::Radius ( ) const
inline

Definition at line 205 of file StarSystem.h.

ListIter<OrbitalRegion> Orbital::Regions ( )
inline

Definition at line 220 of file StarSystem.h.

Graphic* Orbital::Rep ( ) const
inline

Definition at line 213 of file StarSystem.h.

bool Orbital::Retrograde ( ) const
inline

Definition at line 209 of file StarSystem.h.

double Orbital::Rotation ( ) const
inline

Definition at line 206 of file StarSystem.h.

double Orbital::RotationPhase ( ) const
inline

Definition at line 207 of file StarSystem.h.

void Orbital::SetMapIcon ( const Bitmap img)

Definition at line 1905 of file StarSystem.cpp.

int Orbital::SubType ( ) const
inline

Definition at line 201 of file StarSystem.h.

StarSystem* Orbital::System ( ) const
inline

Definition at line 218 of file StarSystem.h.

OrbitalType Orbital::Type ( ) const
inline

Definition at line 200 of file StarSystem.h.

static const char* Orbital::TYPENAME ( )
inlinestatic

Reimplemented in OrbitalRegion, and OrbitalBody.

Definition at line 183 of file StarSystem.h.

void Orbital::Update ( )
virtual

Reimplemented in OrbitalBody, and TerrainRegion.

Definition at line 1860 of file StarSystem.cpp.


Friends And Related Function Documentation

friend class StarSystem
friend

Reimplemented in OrbitalRegion, OrbitalBody, and TerrainRegion.

Definition at line 180 of file StarSystem.h.


Member Data Documentation

Text Orbital::description
protected

Definition at line 227 of file StarSystem.h.

Point Orbital::loc
protected

Definition at line 236 of file StarSystem.h.

Bitmap Orbital::map_icon
protected

Definition at line 239 of file StarSystem.h.

double Orbital::mass
protected

Definition at line 228 of file StarSystem.h.

Text Orbital::name
protected

Definition at line 223 of file StarSystem.h.

double Orbital::orbit
protected

Definition at line 232 of file StarSystem.h.

double Orbital::period
protected

Definition at line 234 of file StarSystem.h.

double Orbital::phase
protected

Definition at line 233 of file StarSystem.h.

Orbital* Orbital::primary
protected

Definition at line 242 of file StarSystem.h.

double Orbital::radius
protected

Definition at line 229 of file StarSystem.h.

List<OrbitalRegion> Orbital::regions
protected

Definition at line 244 of file StarSystem.h.

Graphic* Orbital::rep
protected

Definition at line 238 of file StarSystem.h.

bool Orbital::retro
protected

Definition at line 237 of file StarSystem.h.

double Orbital::rotation
protected

Definition at line 230 of file StarSystem.h.

int Orbital::subtype
protected

Definition at line 225 of file StarSystem.h.

StarSystem* Orbital::system
protected

Definition at line 241 of file StarSystem.h.

double Orbital::theta
protected

Definition at line 231 of file StarSystem.h.

OrbitalType Orbital::type
protected

Definition at line 224 of file StarSystem.h.

double Orbital::velocity
protected

Definition at line 235 of file StarSystem.h.


The documentation for this class was generated from the following files: