Operation Null Mind 0.4.1
A 2D roguelike top down shooter game made with SDL2
 
Loading...
Searching...
No Matches
enemy_libet.h File Reference
#include <enemy.h>
#include <lazer_system.h>

Go to the source code of this file.

Classes

struct  LibetConfig
 Configuration structure for Libet boss enemy. More...
 

Enumerations

enum  LibetState {
  LIBET_EXPLOSION_FIRING , LIBET_JUGGERNAUT_SPAMMING , LIBET_DIAGONAL_LAZER_CHARGING , LIBET_BULLET_HELL_FIRING ,
  LIBET_BIG_LAZER_CHARGING , LIBET_ROOM_LAZER_FIRING , LIBET_FLOATING , LIBET_VINCIBLE ,
  LIBET_DIAGONAL_LAZER_FIRING , LIBET_BIG_LAZER_FIRING , LIBET_SPINNING
}
 

Functions

void Libet_Start (EnemyData *data)
 Initializes the Libet boss enemy.
 
void Libet_Update (EnemyData *data)
 Updates the Libet boss enemy's state.
 
void Libet_Render (EnemyData *data)
 Renders the Libet boss enemy.
 
void Libet_AddLazer (Lazer lazer)
 Adds a lazer to the active lazer pool.
 
void Enemy_RenderBoss ()
 

Variables

Lazer libetLazers [40]
 
LibetConfig LibetConfigData
 
EnemyData LibetData
 [Data] Libet boss enemy default data
 
ParticleEmitter * LibetBulletEmitter
 

Enumeration Type Documentation

◆ LibetState

enum LibetState
Enumerator
LIBET_EXPLOSION_FIRING 
LIBET_JUGGERNAUT_SPAMMING 
LIBET_DIAGONAL_LAZER_CHARGING 
LIBET_BULLET_HELL_FIRING 
LIBET_BIG_LAZER_CHARGING 
LIBET_ROOM_LAZER_FIRING 
LIBET_FLOATING 
LIBET_VINCIBLE 
LIBET_DIAGONAL_LAZER_FIRING 
LIBET_BIG_LAZER_FIRING 
LIBET_SPINNING 

Function Documentation

◆ Enemy_RenderBoss()

void Enemy_RenderBoss ( )

◆ Libet_AddLazer()

void Libet_AddLazer ( Lazer  lazer)

Adds a lazer to the active lazer pool.

Parameters
lazerThe lazer to add

◆ Libet_Render()

void Libet_Render ( EnemyData *  data)

Renders the Libet boss enemy.

Parameters
dataPointer to the enemy data structure

Renders the Libet boss enemy.

This function handles the rendering of the Libet boss enemy.

Parameters
dataPointer to the enemy data structure

◆ Libet_Start()

void Libet_Start ( EnemyData *  data)

Initializes the Libet boss enemy.

Parameters
dataPointer to the enemy data structure

Initializes the Libet boss enemy.

Sets up the Libet boss enemy's resources and initial state.

Parameters
dataPointer to the enemy data structure to initialize

◆ Libet_Update()

void Libet_Update ( EnemyData *  data)

Updates the Libet boss enemy's state.

Parameters
dataPointer to the enemy data structure

Updates the Libet boss enemy's state.

This function is called each frame to update the Libet boss enemy's behavior.

Parameters
dataPointer to the enemy data structure

Variable Documentation

◆ LibetBulletEmitter

ParticleEmitter* LibetBulletEmitter
extern

◆ LibetConfigData

LibetConfig LibetConfigData
extern

◆ LibetData

EnemyData LibetData
extern

[Data] Libet boss enemy default data

This structure defines the default properties, stats, and settings for the Libet boss enemy.

◆ libetLazers

Lazer libetLazers[40]
extern