Enemy state structure. More...
#include <enemy.h>
Public Attributes | |
| Vec2 | position |
| Current position of the enemy. | |
| Vec2 | velocity |
| Current velocity of the enemy. | |
| Vec2 | direction |
| Direction the enemy is facing/moving. | |
| Collider | collider |
| Collision detection information. | |
| int | currentHealth |
| Current health points. | |
| bool | isDead |
| Whether the enemy is dead. | |
| bool | isSpawning |
| Whether the enemy is in spawning state. | |
| SDL_RendererFlip | flip |
| float | tacticianBuff |
| Buff applied by Tactician. | |
| float | tacticianBuffTimeLeft |
| Time left for Tactician buff. | |
Enemy state structure.
Contains the current runtime state information for an enemy, including position, movement, collision, and health status
| Collider EnemyState::collider |
Collision detection information.
| int EnemyState::currentHealth |
Current health points.
| Vec2 EnemyState::direction |
Direction the enemy is facing/moving.
| SDL_RendererFlip EnemyState::flip |
| bool EnemyState::isDead |
Whether the enemy is dead.
| bool EnemyState::isSpawning |
Whether the enemy is in spawning state.
| Vec2 EnemyState::position |
Current position of the enemy.
| float EnemyState::tacticianBuff |
Buff applied by Tactician.
| float EnemyState::tacticianBuffTimeLeft |
Time left for Tactician buff.
| Vec2 EnemyState::velocity |
Current velocity of the enemy.