mirror of
https://github.com/ncblakely/GiantsTools
synced 2024-11-27 08:03:09 +01:00
18 lines
497 B
C
18 lines
497 B
C
|
#pragma once
|
||
|
|
||
|
#include "BehaviorBase.h"
|
||
|
#include "AI/Public/Components/CombatBehaviorState.h"
|
||
|
|
||
|
namespace AI
|
||
|
{
|
||
|
class CombatBehavior : public BehaviorBase<CombatBehaviorState>
|
||
|
{
|
||
|
public:
|
||
|
static InnerBehaviorTree Build(ECS::Entity* entity);
|
||
|
|
||
|
private:
|
||
|
// Nodes
|
||
|
static bool EnemiesNearby(ECS::Entity* entity, Object* object, BehaviorTreeContext& context);
|
||
|
static bool SeekTarget(ECS::Entity* entity, Object* object, BehaviorTreeContext& context);
|
||
|
};
|
||
|
}
|