BetweenFormation Class Reference

#include <FormationObject.h>

Inheritance diagram for BetweenFormation:

SingleFormation List of all members.

Public Member Functions

 BetweenFormation ()
bool isActive () const
virtual bool positionInsideFormation (const PfVec &p) const

Protected Member Functions

virtual void updateGeometry ()

Detailed Description

A class representing a formation between two other objects

Definition at line 139 of file FormationObject.h.


Constructor & Destructor Documentation

BetweenFormation::BetweenFormation (  ) 

Constructor

Definition at line 103 of file FormationObject.cpp.

References SingleFormation::geometricFormationObject, and Object::setGeometry().


Member Function Documentation

bool BetweenFormation::isActive (  )  const [virtual]

Checks if the formation is active

Returns:
true, if the formation is active

Reimplemented from SingleFormation.

Definition at line 111 of file FormationObject.cpp.

References SingleFormation::objects.

bool BetweenFormation::positionInsideFormation ( const PfVec p  )  const [virtual]

Checks if a position is inside the formation area

Parameters:
p The position
Returns:
true, if the position is inside

Reimplemented from SingleFormation.

Definition at line 117 of file FormationObject.cpp.

References SingleFormation::geometricFormationObject, Object::getGeometry(), and Polygon::pointInside().

void BetweenFormation::updateGeometry (  )  [protected, virtual]

Updates the positions of the formation

Reimplemented from SingleFormation.

Definition at line 124 of file FormationObject.cpp.

References SingleFormation::geometricFormationObject, Object::getGeometry(), Polygon::initRadiusOfCollisionCircle(), object, SingleFormation::objects, Polygon::pts, and reduceToConvexHullByWrapping().


The documentation for this class was generated from the following files:
Generated on Thu Dec 7 01:19:20 2006 for DT2005.panorama by  doxygen 1.4.7