Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Gravity Class Reference

#include <collide.H>

Inheritance diagram for Gravity:

Inheritance graph
[legend]
Collaboration diagram for Gravity:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Gravity ()
virtual ~Gravity ()
bool set_grav (GEOMptr g, mlib::CWvec &d, int t)
void set_globe (GEOMptr)
void set_landscape (GEOMptr)
void set_world (mlib::Wvec)

Static Public Member Functions

static mlib::Wvec get_dir (mlib::CWpt &p)
static BaseGravityinstance ()

Protected Types

enum  _gtypes { GLOBE = 0, LANDSCAPE, WORLD }

Protected Member Functions

virtual mlib::CWvec _get_dir (mlib::CWpt &p)

Protected Attributes

GEOMptr _ground
mlib::Wvec _world_dir
double _strength
int _currentGrav
bool _globe
bool _landscape
bool _world

Static Protected Attributes

static BaseGravity_instance = 0

Detailed Description

Definition at line 78 of file collide.H.


Member Enumeration Documentation

enum Gravity::_gtypes [protected]
 

Enumerator:
GLOBE 
LANDSCAPE 
WORLD 

Definition at line 107 of file collide.H.


Constructor & Destructor Documentation

Gravity::Gravity  )  [inline]
 

Definition at line 81 of file collide.H.

References _currentGrav, _globe, _ground, BaseGravity::_instance, _landscape, _strength, and _world.

virtual Gravity::~Gravity  )  [inline, virtual]
 

Definition at line 93 of file collide.H.


Member Function Documentation

virtual mlib::CWvec Gravity::_get_dir mlib::CWpt p  )  [protected, virtual]
 

Reimplemented from BaseGravity.

static mlib::Wvec Gravity::get_dir mlib::CWpt p  )  [static]
 

Reimplemented from BaseGravity.

static BaseGravity* BaseGravity::instance  )  [inline, static, inherited]
 

Definition at line 53 of file base_collide.H.

References BaseGravity::_instance.

Referenced by CamCruise::tick().

void Gravity::set_globe GEOMptr   ) 
 

Definition at line 292 of file collide.C.

References _globe, _ground, _landscape, and _world.

bool Gravity::set_grav GEOMptr  g,
mlib::CWvec d,
int  t
 

Definition at line 281 of file collide.C.

References _currentGrav, and _ground.

Referenced by Cam_int_fp::cruise_down().

void Gravity::set_landscape GEOMptr   ) 
 

Definition at line 301 of file collide.C.

References _globe, _ground, _landscape, and _world.

void Gravity::set_world mlib::Wvec   ) 
 

Definition at line 308 of file collide.C.

References _globe, _landscape, and _world.


Member Data Documentation

int Gravity::_currentGrav [protected]
 

Definition at line 116 of file collide.H.

Referenced by Gravity(), and set_grav().

bool Gravity::_globe [protected]
 

Definition at line 117 of file collide.H.

Referenced by Gravity(), set_globe(), set_landscape(), and set_world().

GEOMptr Gravity::_ground [protected]
 

Definition at line 113 of file collide.H.

Referenced by Gravity(), set_globe(), set_grav(), and set_landscape().

BaseGravity * BaseGravity::_instance = 0 [static, protected, inherited]
 

Definition at line 61 of file base_collide.H.

Referenced by BaseGravity::get_dir(), Gravity(), and BaseGravity::instance().

bool Gravity::_landscape [protected]
 

Definition at line 118 of file collide.H.

Referenced by Gravity(), set_globe(), set_landscape(), and set_world().

double Gravity::_strength [protected]
 

Definition at line 115 of file collide.H.

Referenced by Gravity().

bool Gravity::_world [protected]
 

Definition at line 119 of file collide.H.

Referenced by Gravity(), set_globe(), set_landscape(), and set_world().

mlib::Wvec Gravity::_world_dir [protected]
 

Definition at line 114 of file collide.H.


The documentation for this class was generated from the following files:
Generated on Mon Sep 18 11:45:52 2006 for jot by  doxygen 1.4.4