tagGame::Obstacle Class Reference

Common base class for all obstacles. More...

#include <Obstacle.h>

Inheritance diagram for tagGame::Obstacle:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Obstacle (ShapePtr shape)
void setRenderer (function< void(Obstacle *)> renderer)
void setRenderer (RendererPtr renderer)
RendererPtr getRenderer ()
Shape const & getShape () const
RealVec const & getPosition () const
void setPosition (RealVec const &position)
Real getSpeed () const
void setSpeed (Real const Speed)
Real const & getMass () const
void setMass (Real const mass)
RealVec getVelocity () const
void setVelocity (RealVec const &velocity)
RealVec const & getOrientation () const
void setOrientation (RealVec const &orientation)
void render ()
virtual std::ostream & output (std::ostream &out) const
bool isTouching (Obstacle const &o) const
bool isColliding (Obstacle const &o) const
RealVec nearestIntersection (RealVec const &p, RealVec const &v) const
 Calculate the nearest intersection point of a line in the direction v from the point p.
RealVec normalTo (Obstacle const &o) const
 Return a vector that is normal to o, with respect to this.
Real distanceTo (Obstacle const &o) const
Real distanceSquaredTo (Obstacle const &o) const

Protected Attributes

RendererPtr renderer

Detailed Description

Common base class for all obstacles.


The documentation for this class was generated from the following files:
Generated on Sat Mar 31 22:31:00 2007 for tagGame by  doxygen 1.5.1