MovingObject Class Reference

#include <MovingObject.h>

Inheritance diagram for MovingObject:

Inheritance graph
[legend]
Collaboration diagram for MovingObject:

Collaboration graph
[legend]

Public Member Functions

 MovingObject ()
 MovingObject (const Vector2D &c, const double r, const Vector2D &vel)
 ~MovingObject ()
virtual void move (const double timestep)=0

Protected Attributes

Vector2D velocity

Constructor & Destructor Documentation

MovingObject::MovingObject  )  [inline]
 

Definition at line 31 of file MovingObject.h.

00031 {}

MovingObject::MovingObject const Vector2D c,
const double  r,
const Vector2D vel
[inline]
 

Definition at line 32 of file MovingObject.h.

References velocity.

00033     : Circle(c, r), velocity(vel) {}

MovingObject::~MovingObject  )  [inline]
 

Definition at line 34 of file MovingObject.h.

00034 {}


Member Function Documentation

virtual void MovingObject::move const double  timestep  )  [pure virtual]
 

Implemented in Robot, and Shot.


Field Documentation

Vector2D MovingObject::velocity [protected]
 

Definition at line 39 of file MovingObject.h.

Referenced by bounce_on_robot(), MovingObject(), and shot_collision().


The documentation for this class was generated from the following file:
Generated on Fri Oct 15 15:50:16 2004 for Real Time Battle by  doxygen 1.3.9.1