The filter condition executes some selection filters (IFilter
) and evaluates to true
if the resulting set of all filter executions is non-empty. Use AI::getFilteredEntities
to access the result set and work with it in a TreeNode that is executed when this condition evaluated to true.
More...
#include <Filter.h>
|
| Filter (const Filters &filters) |
|
bool | evaluate (const AIPtr &entity) override |
| Executes the attached filters and wiped the last filter results for the given AI entity. More...
|
|
| ICondition (const std::string &name, const std::string ¶meters) |
|
const std::string & | getName () const |
| Returns the short name of the condition - without any related conditions or results.
|
|
const std::string & | getParameters () const |
| Returns the raw parameters of the condition.
|
|
std::string | getNameWithConditions (const AIPtr &entity) |
| Returns the full condition string with all related conditions and results of the evaluation method. More...
|
|
void * | operator new (size_t size) |
|
void * | operator new (size_t, void *ptr) |
|
void * | operator new[] (size_t size) |
|
void | operator delete (void *ptr) |
|
void | operator delete (void *ptr, void *) |
|
void | operator delete[] (void *ptr) |
|
|
Filters | _filters |
|
int | _id |
| Every node has an id to identify it. It's unique per type.
|
|
const std::string | _name |
|
const std::string | _parameters |
|
The filter condition executes some selection filters (IFilter
) and evaluates to true
if the resulting set of all filter executions is non-empty. Use AI::getFilteredEntities
to access the result set and work with it in a TreeNode that is executed when this condition evaluated to true.
bool ai::Filter::evaluate |
( |
const AIPtr & |
entity | ) |
|
|
inlineoverridevirtual |
Executes the attached filters and wiped the last filter results for the given AI
entity.
- Returns
true
if the attached filters lead to a non-empty set, false
otherwise
Implements ai::ICondition.
void ai::Filter::getConditionNameWithValue |
( |
std::stringstream & |
s, |
|
|
const AIPtr & |
entity |
|
) |
| |
|
inlineoverrideprotectedvirtual |
The documentation for this class was generated from the following file:
- /home/travis/build/mgerhardy/simpleai/src/ai/conditions/Filter.h