AmongFormation Class Reference

#include <FormationObject.h>

Inheritance diagram for AmongFormation:

SingleFormation List of all members.

Public Member Functions

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

Protected Member Functions

virtual void updateGeometry ()

Detailed Description

A class representing a formation among several objects

Definition at line 167 of file FormationObject.h.


Constructor & Destructor Documentation

AmongFormation::AmongFormation (  ) 

Constructor

Definition at line 141 of file FormationObject.cpp.

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


Member Function Documentation

bool AmongFormation::isActive (  )  const [virtual]

Checks if the formation is active

Returns:
true, if the formation is active

Reimplemented from SingleFormation.

Definition at line 149 of file FormationObject.cpp.

References object, and SingleFormation::objects.

bool AmongFormation::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 185 of file FormationObject.cpp.

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

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

Updates the positions of the formation

Reimplemented from SingleFormation.

Definition at line 168 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:18:49 2006 for DT2005.panorama by  doxygen 1.4.7