GBE::GOrbitingAgent Class Reference

Aent providing orbiting around the center of the parent element. More...

#include <GOrbitingAgent.h>

Inheritance diagram for GBE::GOrbitingAgent:

Inheritance graph
[legend]
Collaboration diagram for GBE::GOrbitingAgent:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GOrbitingAgent (const GCS::GVector3 &axis, double rotation_speed)
virtual ~GOrbitingAgent ()
virtual void run ()

Protected Attributes

GCS::GVector3 Axis
double RotationSpeed

Detailed Description

Aent providing orbiting around the center of the parent element.

Author:
Raphael Langerhorst
Todo:
put more intelligence into it, don't simply change the position, but generate move impulses which can be used by the GMoveAgent.
See also:
GMoveAgent


Constructor & Destructor Documentation

GBE::GOrbitingAgent::GOrbitingAgent ( const GCS::GVector3 axis,
double  rotation_speed 
)

Constructor.

virtual GBE::GOrbitingAgent::~GOrbitingAgent (  )  [inline, virtual]

Virtual Destructor.


Member Function Documentation

void GBE::GOrbitingAgent::run (  )  [virtual]

The thread run method which does the orbiting. Currently using hardcoded update interval of 100 ms. Orbiting itself is done by directly rotating the position around (0,0,0) - the center of the parent element.

Reimplemented from GCS::GAgent.


Member Data Documentation

GCS::GVector3 GBE::GOrbitingAgent::Axis [protected]

The Axis around which to orbit.

double GBE::GOrbitingAgent::RotationSpeed [protected]

The orbiting speed.


The documentation for this class was generated from the following files:
Generated on Thu Nov 16 07:49:23 2006 for G System by  doxygen 1.4.7