#include <Action.h>
Definition at line 15 of file Action.h.
◆ operations
◆ operationsIterator
◆ ~Action()
virtual Divide::goap::Action::~Action |
( |
| ) |
|
|
virtualdefault |
◆ Action() [1/3]
Divide::goap::Action::Action |
( |
const Action & |
| ) |
|
|
default |
◆ Action() [2/3]
◆ Action() [3/3]
Action::Action |
( |
const string & |
name, |
|
|
I32 |
cost |
|
) |
| |
◆ actOn()
Act on the given worldstate. Will not check for "eligiblity" and will happily act on whatever worldstate you provide it.
- Parameters
-
ws | the worldstate to act on |
- Returns
- a copy worldstate, with effects applied
Definition at line 39 of file Action.cpp.
◆ checkImplDependentCondition()
virtual bool Divide::goap::Action::checkImplDependentCondition |
( |
| ) |
const |
|
inlinevirtual |
◆ cost()
int Divide::goap::Action::cost |
( |
| ) |
const |
|
inlinenoexcept |
◆ effects()
const operations & Divide::goap::Action::effects |
( |
| ) |
const |
|
inlinenoexcept |
◆ eligibleFor()
Is this action eligible to operate on the given worldstate?
- Parameters
-
ws | the worldstate in question |
- Returns
- true if this worldstate meets the preconditions
Definition at line 21 of file Action.cpp.
◆ name()
const string & Divide::goap::Action::name |
( |
| ) |
const |
|
inlinenoexcept |
◆ operator=()
◆ setEffect()
void Divide::goap::Action::setEffect |
( |
const I32 |
key, |
|
|
const bool |
value |
|
) |
| |
|
inline |
Set the given effect of this action, in terms of variable and new value.
- Parameters
-
key | the name of the effect |
value | the value that will result |
Definition at line 66 of file Action.h.
◆ setPrecondition()
void Divide::goap::Action::setPrecondition |
( |
const I32 |
key, |
|
|
const bool |
value |
|
) |
| |
|
inline |
Set the given precondition variable and value.
- Parameters
-
key | the name of the precondition |
value | the value the precondition must hold |
Definition at line 59 of file Action.h.
◆ cost_
I32 Divide::goap::Action::cost_ |
|
private |
◆ effects_
◆ name_
string Divide::goap::Action::name_ |
|
private |
◆ preconditions_
The documentation for this class was generated from the following files:
- G:/Divide-Framework/Source/AI/ActionInterface/CustomGOAP/Action.h
- G:/Divide-Framework/Source/AI/ActionInterface/CustomGOAP/Action.cpp