group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
EnemyWorldHealthBar.hpp File Reference

Floating HP/shield bar above each on-screen enemy. More...

#include "hud/HudWidget.hpp"
#include <glm/mat4x4.hpp>
#include <string>
#include <unordered_map>
Include dependency graph for EnemyWorldHealthBar.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  EnemyWorldHealthBar
struct  EnemyWorldHealthBar::EnemyState

Detailed Description

Floating HP/shield bar above each on-screen enemy.

Mirrors EnemyHpBar from the prototype: name + numeric on top, optional thin cyan shield bar, then a thicker red HP bar with the same ghost-trail drain animation as the local-player vitals. Each enemy in the HudGameState::worldEnemies span is projected to screen space; bars are drawn only when the projected point is in front of the camera and inside the viewport.