Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Types | Public Attributes | List of all members
AttackIntent_data Struct Reference

#include <ECS_Components_AI.h>

+ Collaboration diagram for AttackIntent_data:

Public Types

enum class  AttackType : uint8_t { Melee = 0 , Ranged , Area }
 

Public Attributes

EntityID targetEntity = INVALID_ENTITY_ID
 
Vector targetPosition
 
float damage = 10.0f
 
float range = 50.0f
 
bool hasIntent = false
 
float cooldown = 1.0f
 
AttackType attackType = AttackType::Melee
 

Detailed Description

Definition at line 179 of file ECS_Components_AI.h.

Member Enumeration Documentation

◆ AttackType

Enumerator
Melee 
Ranged 
Area 

Definition at line 189 of file ECS_Components_AI.h.

Member Data Documentation

◆ attackType

AttackType AttackIntent_data::attackType = AttackType::Melee

Definition at line 195 of file ECS_Components_AI.h.

◆ cooldown

float AttackIntent_data::cooldown = 1.0f

Definition at line 186 of file ECS_Components_AI.h.

◆ damage

float AttackIntent_data::damage = 10.0f

Definition at line 183 of file ECS_Components_AI.h.

◆ hasIntent

bool AttackIntent_data::hasIntent = false

Definition at line 185 of file ECS_Components_AI.h.

◆ range

float AttackIntent_data::range = 50.0f

Definition at line 184 of file ECS_Components_AI.h.

◆ targetEntity

EntityID AttackIntent_data::targetEntity = INVALID_ENTITY_ID

Definition at line 181 of file ECS_Components_AI.h.

Referenced by ExecuteBTAction(), and PrefabFactory::InstantiateAttackIntent().

◆ targetPosition

Vector AttackIntent_data::targetPosition

Definition at line 182 of file ECS_Components_AI.h.


The documentation for this struct was generated from the following file: