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

#include <Asteroid.h>

Inheritance diagram for Asteroid:
Debris SimObject Physical

List of all members.

Public Member Functions

 Asteroid (int type, const Vec3 &pos, double mass)
- Public Member Functions inherited from Debris
 Debris (Model *model, const Vec3 &pos, const Vec3 &vel, double mass)
void SetLife (int seconds)
virtual int HitBy (Shot *shot, Point &impact)
virtual void ExecFrame (double seconds)
virtual double AltitudeAGL () const
- Public Member Functions inherited from SimObject
 SimObject ()
 SimObject (const char *n, int t=0)
virtual ~SimObject ()
virtual SimRegionGetRegion () const
virtual void SetRegion (SimRegion *rgn)
virtual void Notify ()
virtual void Register (SimObserver *obs)
virtual void Unregister (SimObserver *obs)
virtual void Activate (Scene &scene)
virtual void Deactivate (Scene &scene)
virtual DWORD GetObjID () const
virtual void SetObjID (DWORD id)
virtual bool IsHostileTo (const SimObject *o) const
- Public Member Functions inherited from Physical
 Physical ()
 Physical (const char *n, int t=0)
virtual ~Physical ()
int operator== (const Physical &p) const
virtual void AeroFrame (double seconds)
virtual void ArcadeFrame (double seconds)
virtual void AngularFrame (double seconds)
virtual void LinearFrame (double seconds)
virtual void CalcFlightPath ()
virtual void MoveTo (const Point &new_loc)
virtual void TranslateBy (const Point &ref)
virtual void ApplyForce (const Point &force)
virtual void ApplyTorque (const Point &torque)
virtual void SetThrust (double t)
virtual void SetTransX (double t)
virtual void SetTransY (double t)
virtual void SetTransZ (double t)
virtual void SetHeading (double r, double p, double y)
virtual void LookAt (const Point &dst)
virtual void ApplyRoll (double roll_acc)
virtual void ApplyPitch (double pitch_acc)
virtual void ApplyYaw (double yaw_acc)
virtual int CollidesWith (Physical &o)
virtual void InflictDamage (double damage, int type=0)
int Identity () const
int Type () const
const char * Name () const
Point Location () const
Point Heading () const
Point LiftLine () const
Point BeamLine () const
Point Velocity () const
Point Acceleration () const
double Thrust () const
double TransX () const
double TransY () const
double TransZ () const
double Drag () const
double Roll () const
double Pitch () const
double Yaw () const
Point Rotation () const
double Alpha () const
double FlightPathYawAngle () const
double FlightPathPitchAngle () const
double Radius () const
double Mass () const
double Integrity () const
double Life () const
double Shake () const
const PointVibration () const
const CameraCam () const
GraphicRep () const
LightLightSrc () const
DirectorGetDirector () const
virtual void SetAngularRates (double r, double p, double y)
virtual void GetAngularRates (double &r, double &p, double &y)
virtual void SetAngularDrag (double r, double p, double y)
virtual void GetAngularDrag (double &r, double &p, double &y)
virtual void GetAngularThrust (double &r, double &p, double &y)
virtual void SetVelocity (const Point &v)
virtual void SetAbsoluteOrientation (double roll, double pitch, double yaw)
virtual void CloneCam (const Camera &cam)
virtual void SetDrag (double d)
virtual void SetPrimary (const Point &loc, double mass)
virtual void SetGravity (double g)
virtual void SetBaseDensity (double d)
virtual double GetBaseDensity () const
virtual double GetDensity () const

Static Public Member Functions

static void Initialize ()
static void Close ()

Detailed Description

Definition at line 25 of file Asteroid.h.


Constructor & Destructor Documentation

Asteroid::Asteroid ( int  type,
const Vec3 pos,
double  mass 
)

Definition at line 33 of file Asteroid.cpp.


Member Function Documentation

void Asteroid::Close ( )
static

Definition at line 105 of file Asteroid.cpp.

void Asteroid::Initialize ( )
static

Definition at line 42 of file Asteroid.cpp.


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