An action that sets agent properties based on the agent's position along the x-axis.
More...
#include <AircraftTransition.h>
|
bool | _relative |
| Indicates whether the box is defined relative to the agent's position (true) or not (false).
|
|
size_t | _agentClass |
| The agent class this transition operates on. If -1, all agent classes are tested.
|
|
AABBShape | _baseBox |
| The definition of the underlying AABB.
|
|
|
class | ClearAABBCondFactory |
|
An action that sets agent properties based on the agent's position along the x-axis.
Copy constructor.
- Parameters
-
cond | The condition to copy from. |
bool Aircraft::ClearAABBCondition::conditionMet |
( |
Agents::BaseAgent * |
agent, |
|
|
const BFSM::Goal * |
goal |
|
) |
| |
|
virtual |
The AutoCondition is always met – it is a tautology.
- Parameters
-
agent | The agent to test the transition for. |
goal | The agent's goal (although this may be ignored). |
- Returns
- True if the condition has been met, false otherwise.
BFSM::Condition * Aircraft::ClearAABBCondition::copy |
( |
| ) |
|
|
virtual |
Create a copy of this condition.
It is the responsibility of the caller to delete the object.
- Returns
- : A "deep copy" of this condition - such that there is no shared objects between this and its copy.
void Aircraft::ClearAABBCondition::setParams |
( |
float |
xMin, |
|
|
float |
xMax, |
|
|
float |
yMin, |
|
|
float |
yMax, |
|
|
bool |
relative, |
|
|
int |
agentClass |
|
) |
| |
Sets the dimensions of the bounding box.
- Parameters
-
xMin | The minimum point on the AABB along the x-axis. |
xMax | The maximum point on the AABB along the x-axis. |
yMin | The minimum point on the AABB along the y-axis. |
yMax | The maximum point on the AABB along the y-axis. |
relative | Specifies if the clear box is relative (true) to the agents current position, or absolute in the world. |
agentClass | The class of the agents which are tested. If -1 all agents are considered. |
The documentation for this class was generated from the following files: