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

Enemy data structure. More...

#include <enemy.h>

Public Attributes

EnemyType type
 Type of enemy.
 
EnemyState state
 Current state information.
 
EnemyStats stats
 Stats and capabilities.
 
EnemyResources resources
 Pointers to resources.
 
AnimationData animData
 Animation configuration.
 
void * config
 Enemy type-specific configuration.
 
void(* start )(EnemyData *data)
 Initialization function.
 
void(* update )(EnemyData *data)
 Update logic function.
 
void(* render )(EnemyData *data)
 Render function.
 
const char * name
 Name of the enemy.
 

Detailed Description

Enemy data structure.

Complete definition of an enemy, including type, state, stats, resources, animation data, and function pointers for behavior

Member Data Documentation

◆ animData

AnimationData EnemyData::animData

Animation configuration.

◆ config

void* EnemyData::config

Enemy type-specific configuration.

◆ name

const char* EnemyData::name

Name of the enemy.

◆ render

void(* EnemyData::render) (EnemyData *data)

Render function.

◆ resources

EnemyResources EnemyData::resources

Pointers to resources.

◆ start

void(* EnemyData::start) (EnemyData *data)

Initialization function.

◆ state

EnemyState EnemyData::state

Current state information.

◆ stats

EnemyStats EnemyData::stats

Stats and capabilities.

◆ type

EnemyType EnemyData::type

Type of enemy.

◆ update

void(* EnemyData::update) (EnemyData *data)

Update logic function.


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