Operation Null Mind 0.4.1
A 2D roguelike top down shooter game made with SDL2
 
Loading...
Searching...
No Matches
EnemyState Struct Reference

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.
 

Detailed Description

Enemy state structure.

Contains the current runtime state information for an enemy, including position, movement, collision, and health status

Member Data Documentation

◆ collider

Collider EnemyState::collider

Collision detection information.

◆ currentHealth

int EnemyState::currentHealth

Current health points.

◆ direction

Vec2 EnemyState::direction

Direction the enemy is facing/moving.

◆ flip

SDL_RendererFlip EnemyState::flip

◆ isDead

bool EnemyState::isDead

Whether the enemy is dead.

◆ isSpawning

bool EnemyState::isSpawning

Whether the enemy is in spawning state.

◆ position

Vec2 EnemyState::position

Current position of the enemy.

◆ tacticianBuff

float EnemyState::tacticianBuff

Buff applied by Tactician.

◆ tacticianBuffTimeLeft

float EnemyState::tacticianBuffTimeLeft

Time left for Tactician buff.

◆ velocity

Vec2 EnemyState::velocity

Current velocity of the enemy.


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