This condition will just swap the result of the contained condition.
More...
#include <Not.h>
|
| Not (const ConditionPtr &condition) |
|
bool | evaluate (const AIPtr &entity) override |
| Checks whether the condition evaluates to true for the given 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) |
|
|
ConditionPtr | _condition |
|
int | _id |
| Every node has an id to identify it. It's unique per type.
|
|
const std::string | _name |
|
const std::string | _parameters |
|
This condition will just swap the result of the contained condition.
bool ai::Not::evaluate |
( |
const AIPtr & |
entity | ) |
|
|
inlineoverridevirtual |
Checks whether the condition evaluates to true
for the given entity
.
- Parameters
-
[in,out] | entity | The entity that is used to evaluate the condition |
- Returns
true
if the condition is fulfilled, false
otherwise.
Implements ai::ICondition.
void ai::Not::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/Not.h