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

Implements update logic for Recharge enemy type. More...

#include <enemy_recharge.h>
#include <player.h>
#include <time_system.h>
#include <random.h>
#include <circle.h>

Functions

Vec2 Recharge_GetDirection (EnemyData *data)
 Gets the direction for the Recharge enemy to move towards Recharge typically moves towards the closest non-recharge enemy detected.
 
void Recharge_Update (EnemyData *data)
 [PostUpdate] Updates the Recharge enemy's state
 

Detailed Description

Implements update logic for Recharge enemy type.

Contains the AI behavior and state updates for the Recharge enemy.

Author
Mango
Date
2025-03-06

Function Documentation

◆ Recharge_GetDirection()

Vec2 Recharge_GetDirection ( EnemyData *  data)

Gets the direction for the Recharge enemy to move towards Recharge typically moves towards the closest non-recharge enemy detected.

Parameters
data
Returns
Vec2

◆ Recharge_Update()

void Recharge_Update ( EnemyData *  data)

[PostUpdate] Updates the Recharge enemy's state

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

Parameters
dataPointer to the enemy data structure