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

This file contains the data for the Proxy enemy type. More...

#include <enemy.h>
#include <gun.h>

Go to the source code of this file.

Classes

struct  ProxyConfig
 

Functions

void Proxy_Start (EnemyData *data)
 [Start] Initializes a Proxy enemy instance
 
void Proxy_Update (EnemyData *data)
 [PostUpdate] Updates the Proxy enemy's state
 
void Proxy_Render (EnemyData *data)
 [Render] Renders the Proxy enemy
 
void Proxy_UpdateParticles ()
 
void Proxy_RenderParticles ()
 

Variables

ParticleEmitter * ProxyBulletEmitter
 
ParticleEmitter * ProxyBulletFragmentsEmitter
 
ParticleEmitter * ProxyMuzzleFlashEmitter
 
ParticleEmitter * ProxyCasingEmitter
 
ProxyConfig ProxyConfigData
 
EnemyData ProxyData
 [Data] Proxy enemy default data
 

Detailed Description

This file contains the data for the Proxy enemy type.

Author
Mango
Date
2025-03-20

Function Documentation

◆ Proxy_Render()

void Proxy_Render ( EnemyData *  data)

[Render] Renders the Proxy enemy

This function handles the rendering of the Proxy enemy type. When deployed, it also renders the proxy's influence radius.

Parameters
dataPointer to the enemy data structure

◆ Proxy_RenderParticles()

void Proxy_RenderParticles ( )

◆ Proxy_Start()

void Proxy_Start ( EnemyData *  data)

[Start] Initializes a Proxy enemy instance

Sets up the Proxy enemy's resources including animations, particle effects, and timers.

Parameters
dataPointer to the enemy data structure to initialize

◆ Proxy_Update()

void Proxy_Update ( EnemyData *  data)

[PostUpdate] Updates the Proxy enemy's state

This function is called each frame to update the Proxy enemy's behavior. The Proxy enemy deploys at a position and can act as a decoy or amplifier for other enemies.

Parameters
dataPointer to the enemy data structure

◆ Proxy_UpdateParticles()

void Proxy_UpdateParticles ( )

Variable Documentation

◆ ProxyBulletEmitter

ParticleEmitter* ProxyBulletEmitter
extern

◆ ProxyBulletFragmentsEmitter

ParticleEmitter* ProxyBulletFragmentsEmitter
extern

◆ ProxyCasingEmitter

ParticleEmitter* ProxyCasingEmitter
extern

◆ ProxyConfigData

ProxyConfig ProxyConfigData
extern

◆ ProxyData

EnemyData ProxyData
extern

[Data] Proxy enemy default data

This structure defines the default properties, stats and settings for the Proxy enemy type.

◆ ProxyMuzzleFlashEmitter

ParticleEmitter* ProxyMuzzleFlashEmitter
extern