Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
WarSceneActions.cpp
Go to the documentation of this file.
1
2
4
6
7namespace Divide::AI {
8
10 const string& name,
11 const F32 cost)
12 : GOAPAction(name, to_I32(cost)),
13 _type(type)
14{
15}
16
17bool WarSceneAction::preAction(WarSceneAIProcessor& parentProcessor) const {
18 return Attorney::WarAISceneWarAction::preAction(parentProcessor, _type, this);
19}
20
21bool WarSceneAction::postAction(WarSceneAIProcessor& parentProcessor) const {
22 return Attorney::WarAISceneWarAction::postAction(parentProcessor, _type, this);
23}
24
25} // namespace Divide::AI
static bool preAction(WarSceneAIProcessor &aiProcessor, const ActionType type, const WarSceneAction *warAction)
static bool postAction(WarSceneAIProcessor &aiProcessor, const ActionType type, const WarSceneAction *warAction)
bool postAction(WarSceneAIProcessor &parentProcessor) const
WarSceneAction(ActionType type, const string &name, F32 cost=1.0f)
bool preAction(WarSceneAIProcessor &parentProcessor) const
constexpr I32 to_I32(const T value)