43 [[nodiscard]]
int GetMax()
const {
return m_max; }
44 [[nodiscard]]
int GetCurrent()
const {
return m_current; }
45 [[nodiscard]]
bool IsDead()
const {
return m_current <= 0; }
54 void Heal(
int amount);
66 [[nodiscard]]
bool ShowsBar()
const {
return m_showBar; }
73 bool m_invulnerable =
false;
74 bool m_destroyOnDeath =
false;
79 bool m_showBar =
true;
80 bool m_hideAtFull =
false;
81 bool m_showText =
true;
82 f32 m_barOffsetY = 1.1F;
83 f32 m_barWorldWidth = 1.6F;
84 f32 m_barAspect = 0.18F;
85 f32 m_minScreenWidth = 32.0F;
86 f32 m_maxScreenWidth = 360.0F;
87 f32 m_displayedFill = 1.0F;
88 f32 m_barLerpSpeed = 8.0F;
89 vec4 m_shadowColor =
vec4(0.0F, 0.0F, 0.0F, 0.55F);
90 vec4 m_borderColor =
vec4(0.04F, 0.05F, 0.07F, 0.95F);
91 vec4 m_bgColorTop =
vec4(0.10F, 0.11F, 0.13F, 0.92F);
92 vec4 m_bgColorBottom =
vec4(0.18F, 0.20F, 0.23F, 0.92F);
93 vec4 m_fillColorHigh =
vec4(0.30F, 0.92F, 0.45F, 1.0F);
94 vec4 m_fillColorMid =
vec4(0.98F, 0.82F, 0.25F, 1.0F);
95 vec4 m_fillColorLow =
vec4(0.95F, 0.25F, 0.25F, 1.0F);
96 vec4 m_glossColor =
vec4(1.0F, 1.0F, 1.0F, 0.22F);
97 vec4 m_textColor =
vec4(1.0F, 1.0F, 1.0F, 0.95F);
98 vec4 m_textShadowColor =
vec4(0.0F, 0.0F, 0.0F, 0.85F);