se_core::AreaEdge Class Reference

Base reaction class for actor vs thing collisions. More...

#include <AreaEdge.hpp>

List of all members.

Public Member Functions

 AreaEdge ()
void addLink (const Point2 &p1, const Point2 &p2)
 Add a line that is part of the edge of the area.
void removeLink (const Point2 &p1, const Point2 &p2)
coor_t distance (const Point2 &testPoint, Point2 &dest) const
 Calculate the distance from the test point to the nearest edge line.
bool isGuilty (const Point2 &oldP, const Point2 &nextP) const


Detailed Description

Base reaction class for actor vs thing collisions.

Definition at line 35 of file AreaEdge.hpp.


Constructor & Destructor Documentation

se_core::AreaEdge::AreaEdge  ) 
 

Definition at line 31 of file AreaEdge.cpp.


Member Function Documentation

void se_core::AreaEdge::addLink const Point2 p1,
const Point2 p2
 

Add a line that is part of the edge of the area.

Lines should be either clockwise or anti-clockwise memers of an edge polygon. A mix will most likely fail with an assertion, as the same point is likely to link to two other points.

Definition at line 36 of file AreaEdge.cpp.

References AssertFatal.

Referenced by se_core::Area::Area(), and se_basic::NavMesh::walls().

coor_t se_core::AreaEdge::distance const Point2 testPoint,
Point2 dest
const
 

Calculate the distance from the test point to the nearest edge line.

Definition at line 70 of file AreaEdge.cpp.

References coor_double_t, se_core::Point2::distanceSquared(), se_core::Point2::nearestPoint(), and se_core::Tuple2::set().

bool se_core::AreaEdge::isGuilty const Point2 oldP,
const Point2 nextP
const
 

Definition at line 94 of file AreaEdge.cpp.

References coor_double_t, se_core::Point2::distanceSquared(), se_core::Point2::isLeft(), and se_core::Point2::nearestPoint().

void se_core::AreaEdge::removeLink const Point2 p1,
const Point2 p2
 

Definition at line 46 of file AreaEdge.cpp.

References AssertFatal.

Referenced by se_core::Area::addNeighbour().


The documentation for this class was generated from the following files:

Home Page | SagaEngine trunk (updated nightly) reference generated Sun Dec 2 20:06:27 2007 by Doxygen version 1.3.9.1.

SourceForge.net Logo