#include <FormationObject.h>
Inheritance diagram for AmongFormation:
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. |
Definition at line 167 of file FormationObject.h.
|
Constructor.
Definition at line 141 of file FormationObject.cpp. References Object::setGeometry(). |
Here is the call graph for this function:
|
Checks if the formation is active.
Reimplemented from SingleFormation. Definition at line 149 of file FormationObject.cpp. |
|
Checks if a position is inside the formation area.
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:
|
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: