#include <FormationObject.h>
Inheritance diagram for AmongFormation:
Public Member Functions | |
AmongFormation () | |
bool | isActive () const |
virtual bool | positionInsideFormation (const PfVec &p) const |
Protected Member Functions | |
virtual void | updateGeometry () |
Definition at line 167 of file FormationObject.h.
AmongFormation::AmongFormation | ( | ) |
Constructor
Definition at line 141 of file FormationObject.cpp.
References SingleFormation::geometricFormationObject, and Object::setGeometry().
bool AmongFormation::isActive | ( | ) | const [virtual] |
Checks 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
p | The position |
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().