group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
HudWorldEnemy Struct Reference

World-space enemy entry — for the floating HP bar that hovers above each visible enemy in the world (renders only when on-screen). More...

#include <HudTypes.hpp>

Public Attributes

float worldX = 0.f
float worldY = 0.f
float worldZ = 0.f
 Top of the enemy capsule.
std::string name
 Display label (e.g. "RAIDEN").
int health = 100
int maxHealth = 100
int armor = 0
int maxArmor = 100
bool isAlive = true

Detailed Description

World-space enemy entry — for the floating HP bar that hovers above each visible enemy in the world (renders only when on-screen).

Member Data Documentation

◆ armor

int HudWorldEnemy::armor = 0

◆ health

int HudWorldEnemy::health = 100

◆ isAlive

bool HudWorldEnemy::isAlive = true

◆ maxArmor

int HudWorldEnemy::maxArmor = 100

◆ maxHealth

int HudWorldEnemy::maxHealth = 100

◆ name

std::string HudWorldEnemy::name

Display label (e.g. "RAIDEN").

◆ worldX

float HudWorldEnemy::worldX = 0.f

◆ worldY

float HudWorldEnemy::worldY = 0.f

◆ worldZ

float HudWorldEnemy::worldZ = 0.f

Top of the enemy capsule.


The documentation for this struct was generated from the following file: