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