Implements update logic for Tactician enemy type. More...
#include <enemy_tactician.h>#include <player.h>#include <time_system.h>#include <random.h>#include <circle.h>#include <math.h>Functions | |
| void | Tactician_UpdateGun (EnemyData *data) |
| Updates the gun position and orientation for the Tactician enemy. | |
| void | Tactician_Update (EnemyData *data) |
| [PostUpdate] Updates the Tactician enemy's state and behavior | |
| void | Tactician_UpdateParticles () |
| Updates all particle emitters related to the Tactician enemy. | |
Implements update logic for Tactician enemy type.
Contains the AI behavior and state updates for the Tactician enemy.
| void Tactician_Update | ( | EnemyData * | data | ) |
[PostUpdate] Updates the Tactician enemy's state and behavior
Handles the state machine for the Tactician enemy, which can buff nearby enemies and fire bursts of shots at the player. The Tactician is designed to maintain distance from the player while supporting other enemies.
| data | Pointer to the enemy data structure |
| void Tactician_UpdateGun | ( | EnemyData * | data | ) |
Updates the gun position and orientation for the Tactician enemy.
Calculates the gun position, rotation, and orientation based on the enemy's position and the player's location. Also updates associated particle emitters for muzzle flash and bullet casings.
| data | Pointer to the enemy data structure |
| void Tactician_UpdateParticles | ( | ) |
Updates all particle emitters related to the Tactician enemy.
Processes particle physics, collision detection, and damage calculation for bullets fired by the Tactician enemy. Also handles special visual effects for the buff ability and bullet impacts.