Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

AmongFormation Class Reference

A class representing a formation among several objects. More...

#include <FormationObject.h>

Inheritance diagram for AmongFormation:

Inheritance graph
[legend]
Collaboration diagram for AmongFormation:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AmongFormation ()
 Constructor.

bool isActive () const
 Checks if the formation is active.

virtual bool positionInsideFormation (const PfVec &p) const
 Checks if a position is inside the formation area.


Protected Member Functions

virtual void updateGeometry ()
 Updates the positions of the formation.


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 Object::setGeometry().

Here is the call graph for this function:


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.

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 Object::getGeometry(), and Polygon::pointInside().

Here is the call graph for this function:

void AmongFormation::updateGeometry  )  [protected, virtual]
 

Updates the positions of the formation.

Reimplemented from SingleFormation.

Definition at line 168 of file FormationObject.cpp.

References Object::getGeometry(), Polygon::initRadiusOfCollisionCircle(), Polygon::pts, and reduceToConvexHullByWrapping().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Thu Sep 23 20:04:09 2004 for GT2004 by doxygen 1.3.6