BaseMovingObject Class Reference

#include <physics.h>

Inheritance diagram for BaseMovingObject:

Inheritance graph
[legend]
Collaboration diagram for BaseMovingObject:

Collaboration graph
[legend]

List of all members.


Detailed Description

Base moving object catesian moving object class

Definition at line 175 of file physics.h.


Public Member Functions

 BaseMovingObject (double speed=.0, double turn=.0, double size=.0, double x=.0, double y=.0, double angle=.0)
 BaseMovingObject (double speed, double turn, double size, const struct Point &point, double angle)
 BaseMovingObject (double speed, double turn, double size, const struct Position &position)
virtual ~BaseMovingObject ()
double Speed ()
double Speed (const DateTime &at)
double Radius ()
double Radius (const DateTime &at)
struct Position Position ()
struct Position Position (const DateTime &at)
double Size ()
double Size (const DateTime &at)
IObjectSerialize (std::ostream &output)
IObjectDeserialize (std::istream &input)

Protected Member Functions

double ImplSpeed (const DateTime &)
double ImplRadius (const DateTime &)
void SetSpeed (double)
void SetRadius (double)
virtual void ImplSerialize (std::ostream &)
virtual void ImplDeserialize (std::istream &)
virtual struct Position ImplPosition (const DateTime &)=0
virtual double ImplSize (const DateTime &)=0
struct Position ImplPosition (const DateTime &)
double ImplSize (const DateTime &)
void SetPosition (double x, double y, double angle)
void SetPosition (const struct Point &point, double angle)
void SetPosition (const struct Position &position)
void SetSize (double size)

Private Member Functions

 BaseMovingObject (const BaseMovingObject &rhs)
BaseMovingObjectoperator= (const BaseMovingObject &rhs)

Private Attributes

Members * pimpl

Constructor & Destructor Documentation

BaseMovingObject ( double  speed = .0,
double  turn = .0,
double  size = .0,
double  x = .0,
double  y = .0,
double  angle = .0 
)

BaseMovingObject ( double  speed,
double  turn,
double  size,
const struct Point point,
double  angle 
)

BaseMovingObject ( double  speed,
double  turn,
double  size,
const struct Position position 
)

virtual ~BaseMovingObject (  )  [virtual]

BaseMovingObject ( const BaseMovingObject rhs  )  [private]


Member Function Documentation

double ImplSpeed ( const DateTime  )  [protected, virtual]

Implements IMovingObject.

double ImplRadius ( const DateTime  )  [protected, virtual]

Implements IMovingObject.

void SetSpeed ( double   )  [protected]

void SetRadius ( double   )  [protected]

virtual void ImplSerialize ( std::ostream &   )  [protected, virtual]

Reimplemented from BaseObject.

Reimplemented in State, and SimpleComponent.

virtual void ImplDeserialize ( std::istream &   )  [protected, virtual]

Reimplemented from BaseObject.

Reimplemented in State, and SimpleComponent.

BaseMovingObject& operator= ( const BaseMovingObject rhs  )  [private]

double Speed (  )  [inline, inherited]

Gets the object speed

Definition at line 101 of file physics.h.

References DateTime::Now().

Referenced by readCoreInfo().

Here is the call graph for this function:

Here is the caller graph for this function:

double Speed ( const DateTime at  )  [inline, inherited]

Definition at line 107 of file physics.h.

double Radius (  )  [inline, inherited]

Gets the object turn angle

Definition at line 113 of file physics.h.

References DateTime::Now().

Referenced by readCoreInfo().

Here is the call graph for this function:

Here is the caller graph for this function:

double Radius ( const DateTime at  )  [inline, inherited]

Definition at line 119 of file physics.h.

struct Position Position (  )  [inline, read, inherited]

Gets the object center

Definition at line 40 of file physics.h.

References IObject::ImplPosition(), and DateTime::Now().

Referenced by Core::dispatch(), Arena::Private::drawCircle(), and readCoreInfo().

Here is the call graph for this function:

Here is the caller graph for this function:

struct Position Position ( const DateTime at  )  [inline, read, inherited]

Definition at line 46 of file physics.h.

References IObject::ImplPosition().

Here is the call graph for this function:

double Size (  )  [inline, inherited]

Gets the object radius

Definition at line 52 of file physics.h.

References IObject::ImplSize(), and DateTime::Now().

Referenced by Arena::Private::drawCircle(), and Arena::Private::renderBot().

Here is the call graph for this function:

Here is the caller graph for this function:

double Size ( const DateTime at  )  [inline, inherited]

Definition at line 58 of file physics.h.

References IObject::ImplSize().

Here is the call graph for this function:

IObject& Serialize ( std::ostream &  output  )  [inline, inherited]

Definition at line 63 of file physics.h.

References IObject::ImplSerialize().

Referenced by Core::Export().

Here is the call graph for this function:

Here is the caller graph for this function:

IObject& Deserialize ( std::istream &  input  )  [inline, inherited]

Definition at line 68 of file physics.h.

References IObject::ImplDeserialize().

Referenced by Core::Import().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual struct Position ImplPosition ( const DateTime  )  [read, protected, pure virtual, inherited]

Implemented in BaseObject, Compass, SoundSensor, and Trilobot.

Referenced by IObject::Position().

Here is the caller graph for this function:

virtual double ImplSize ( const DateTime  )  [protected, pure virtual, inherited]

Implemented in BaseObject, Compass, SoundSensor, and Trilobot.

Referenced by IObject::Size().

Here is the caller graph for this function:

struct Position ImplPosition ( const DateTime  )  [read, protected, virtual, inherited]

Implements IObject.

double ImplSize ( const DateTime  )  [protected, virtual, inherited]

Implements IObject.

void SetPosition ( double  x,
double  y,
double  angle 
) [protected, inherited]

void SetPosition ( const struct Point point,
double  angle 
) [protected, inherited]

void SetPosition ( const struct Position position  )  [protected, inherited]

void SetSize ( double  size  )  [protected, inherited]


Member Data Documentation

Members* pimpl [private]

Reimplemented from BaseObject.

Reimplemented in State.

Definition at line 205 of file physics.h.


The documentation for this class was generated from the following file:
Generated on Fri Jul 10 22:42:09 2009 for rob08 by  doxygen 1.5.4