resonance 1.0.1
Loading...
Searching...
No Matches
hudenergy.h
Go to the documentation of this file.
1#pragma once
2
3namespace Rnd {
4class Animatable;
5class Mesh;
6} // namespace Rnd
7
16class HudEnergy {
17private:
18 Rnd::Animatable *mAnim; // `HUD1 energy bar.msnm`
19 Rnd::Mesh *mBar; // `HUD1 energy bar.mesh`
20
21public:
32 HudEnergy(int nIndex);
33
44 void SetFrame(float flFrame);
45
52 float mLevel;
53};
float mLevel
The level, 0 through 1.
Definition hudenergy.h:52
HudEnergy(int nIndex)
Resolve the bar and its animation, and empty it.
void SetFrame(float flFrame)
Show the level, blinking the bar while the level is low.
Mix-in for an object driven by a frame number.
Definition animatable.h:43
Indexed triangle mesh with one material.
Definition mesh.h:46
The rendering engine.
Definition animhelper.h:3