#include <Obstacle.h>
Inheritance diagram for tagGame::Obstacle:

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 |
1.5.1