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

Shared types for the HUD system. More...

#include "network/MatchStatus.hpp"
#include <array>
#include <cstddef>
#include <cstdint>
#include <glm/glm.hpp>
#include <span>
#include <string>
Include dependency graph for HudTypes.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  HudColor
 RGBA color for HUD elements (linear space, straight alpha). More...
struct  HudVertex
 Per-vertex data for all HUD geometry (48 bytes). More...
struct  CrosshairStyle
 Crosshair appearance parameters. More...
struct  HudKillFeedEntry
 Kill feed entry data. More...
struct  HudDamageEvent
 Damage direction indicator. More...
struct  HudHitConfirm
 Hit confirmation event. More...
struct  HudDamageNumber
 Floating damage number spawned at a world-space hit position. More...
struct  HudDamageAccum
 Current damage accumulator state for the local player. More...
struct  HudTeamMemberStatus
 Per-teammate status (for scoreboard / team bar). More...
struct  HudMinimapDot
 World-space position for minimap display. More...
struct  HudWorldEnemy
 World-space enemy entry — for the floating HP bar that hovers above each visible enemy in the world (renders only when on-screen). More...
struct  HudKillerBox
 Killcam killer marker — the killer's world AABB + nickname, used on the death screen to float the killer's name above them while awaiting respawn. More...
struct  HudEquipmentState
 Equipment slot state — drives the bottom-center grapple/grenade/tactical row. More...
struct  HudGrenadeRadialItem
struct  HudGrenadeRadialState
struct  HudEmoteWheelState
 Emote wheel state — drives the radial emote selection menu. More...
struct  HudAbilityChoice
struct  HudAbilitySelectionState
struct  HudPickupNotification
 Pickup notification entry — slide-in messages for items just acquired. More...
struct  HudPopupMessage
 Generic transient HUD popup message. More...
struct  HudKdaCounter
 Local player K/D/A — feeds the top-right counter. More...
struct  HudChatMessage
struct  HudChatState
struct  HudVoiceSpeaker
struct  HudMatchInfo
 Match info for the top-center header. More...
struct  HudShotgunPellet
 Per-pellet result for a single shotgun blast, used by ShotgunPelletWidget. More...
struct  HudShotgunBlast
 A single completed shotgun blast (11 pellets) staged for the HUD widget. More...
struct  HudGameState
 Snapshot of game state consumed by the HUD each frame. More...

Enumerations

enum class  HudAnchor {
  TopLeft , TopCenter , TopRight , CenterLeft ,
  Center , CenterRight , BottomLeft , BottomCenter ,
  BottomRight
}
enum class  HudAlign { Left , Center , Right }
enum class  HudIcon : uint8_t {
  None = 0 , AbilityBarBack , AbilityBarFront , AbilityIconFrame ,
  BulletCountBox , GrenadeBox , HealthFrameBack , HealthFrameFront ,
  LetterButton , LevelBarBack , LevelBarFront , NoIcon ,
  Radar , Scoreboard , EnemyDiamond , Fall ,
  DashAbilityIcon , Grapple , GrappleAbilityIcon , Gravity ,
  GravityAbilityIcon , LevitateAbilityIcon , Grenade , FragGrenadeIcon ,
  MolotovGrenadeIcon , StickyGrenadeIcon , Headshot , Hp ,
  PlayerArrow , Shield , Skull , Tactical ,
  WallhackAbilityIcon , RecallAbilityIcon , TopDecal , BottomDecal ,
  WeaponFrame , ARIcon , RocketLauncherIcon , RailGunIcon ,
  TrackingGunIcon
}
 Icon identifiers for the HUD icon atlas. More...
enum class  HudPopupKind : std::uint8_t {
  Info , Success , Warning , PlayerJoined ,
  PlayerLeft
}
 Visual category for generic transient HUD popup messages. More...

Variables

constexpr std::size_t kHudGrenadeSlots = 3

Detailed Description

Shared types for the HUD system.

Enumeration Type Documentation

◆ HudAlign

enum class HudAlign
strong
Enumerator
Left 
Center 
Right 

◆ HudAnchor

enum class HudAnchor
strong
Enumerator
TopLeft 
TopCenter 
TopRight 
CenterLeft 
Center 
CenterRight 
BottomLeft 
BottomCenter 
BottomRight 

◆ HudIcon

enum class HudIcon : uint8_t
strong

Icon identifiers for the HUD icon atlas.

Enumerator
None 
AbilityBarBack 
AbilityBarFront 
AbilityIconFrame 
BulletCountBox 
GrenadeBox 
HealthFrameBack 
HealthFrameFront 
LetterButton 
LevelBarBack 
LevelBarFront 
NoIcon 
Radar 
Scoreboard 
EnemyDiamond 
Fall 
DashAbilityIcon 
Grapple 
GrappleAbilityIcon 
Gravity 
GravityAbilityIcon 
LevitateAbilityIcon 
Grenade 
FragGrenadeIcon 
MolotovGrenadeIcon 
StickyGrenadeIcon 
Headshot 
Hp 
PlayerArrow 
Shield 
Skull 
Tactical 
WallhackAbilityIcon 
RecallAbilityIcon 
TopDecal 
BottomDecal 
WeaponFrame 
ARIcon 
RocketLauncherIcon 
RailGunIcon 
TrackingGunIcon 

◆ HudPopupKind

enum class HudPopupKind : std::uint8_t
strong

Visual category for generic transient HUD popup messages.

Enumerator
Info 

Neutral informational popup.

Success 

Positive confirmation popup.

Warning 

Warning or attention popup.

PlayerJoined 

Player joined the active match.

PlayerLeft 

Player left the active match.

Variable Documentation

◆ kHudGrenadeSlots

std::size_t kHudGrenadeSlots = 3
inlineconstexpr