#include <hud.h>
|
| CHud () |
|
virtual int | Sizeof () const override |
|
void | ResetHudContainers () |
|
virtual void | OnWindowResize () override |
|
virtual void | OnReset () override |
|
virtual void | OnRender () override |
|
virtual void | OnInit () override |
|
virtual void | OnNewSnapshot () override |
|
virtual void | OnMessage (int MsgType, void *pRawMsg) override |
|
void | RenderNinjaBarPos (float x, const float y, const float Width, const float Height, float Progress, float Alpha=1.0f) |
|
virtual | ~CComponent () |
|
virtual int | Sizeof () const =0 |
|
class CGameClient * | GameClient () const |
|
class IClient * | Client () const |
|
virtual void | OnStateChange (int NewState, int OldState) |
|
virtual void | OnConsoleInit () |
|
virtual void | OnInit () |
|
virtual void | OnShutdown () |
|
virtual void | OnReset () |
|
virtual void | OnWindowResize () |
|
virtual void | OnRefreshSkins () |
|
virtual void | OnRender () |
|
virtual void | OnNewSnapshot () |
|
virtual void | OnRelease () |
|
virtual void | OnMapLoad () |
|
virtual void | OnMessage (int Msg, void *pRawMsg) |
|
virtual bool | OnCursorMove (float x, float y, IInput::ECursorType CursorType) |
|
virtual bool | OnInput (const IInput::CEvent &Event) |
|
◆ ESpeedChange
Enumerator |
---|
NONE | |
INCREASE | |
DECREASE | |
◆ CHud()
◆ GetDigitsIndex()
int CHud::GetDigitsIndex |
( |
int |
Value, |
|
|
int |
Max |
|
) |
| |
|
inlineprivate |
◆ GetMovementInformationBoxHeight()
float CHud::GetMovementInformationBoxHeight |
( |
| ) |
|
|
inlineprivate |
◆ OnInit()
Called to let the components run initialization code.
Reimplemented from CComponent.
◆ OnMessage()
void CHud::OnMessage |
( |
int |
Msg, |
|
|
void * |
pRawMsg |
|
) |
| |
|
overridevirtual |
◆ OnNewSnapshot()
void CHud::OnNewSnapshot |
( |
| ) |
|
|
overridevirtual |
Called when a new snapshot is received.
Reimplemented from CComponent.
◆ OnRender()
Called when the component should get rendered.
The render order depends on the component insertion order.
Reimplemented from CComponent.
◆ OnReset()
Called to reset the component. This method is usually called on your component constructor to avoid code duplication.
- See also
- CHud::CHud()
-
CHud::OnReset()
Reimplemented from CComponent.
◆ OnWindowResize()
void CHud::OnWindowResize |
( |
| ) |
|
|
overridevirtual |
Called when the window has been resized.
Reimplemented from CComponent.
◆ PrepareAmmoHealthAndArmorQuads()
void CHud::PrepareAmmoHealthAndArmorQuads |
( |
| ) |
|
|
private |
◆ PreparePlayerStateQuads()
void CHud::PreparePlayerStateQuads |
( |
| ) |
|
|
private |
◆ RenderAmmoHealthAndArmor()
◆ RenderConnectionWarning()
void CHud::RenderConnectionWarning |
( |
| ) |
|
|
private |
◆ RenderCursor()
void CHud::RenderCursor |
( |
| ) |
|
|
private |
◆ RenderDDRaceEffects()
void CHud::RenderDDRaceEffects |
( |
| ) |
|
|
private |
◆ RenderDummyActions()
void CHud::RenderDummyActions |
( |
| ) |
|
|
private |
◆ RenderGameTimer()
void CHud::RenderGameTimer |
( |
| ) |
|
|
private |
◆ RenderLocalTime()
void CHud::RenderLocalTime |
( |
float |
x | ) |
|
|
private |
◆ RenderMovementInformation()
void CHud::RenderMovementInformation |
( |
const int |
ClientId | ) |
|
|
private |
◆ RenderMovementInformationTextContainer()
◆ RenderNinjaBarPos()
void CHud::RenderNinjaBarPos |
( |
float |
x, |
|
|
const float |
y, |
|
|
const float |
Width, |
|
|
const float |
Height, |
|
|
float |
Progress, |
|
|
float |
Alpha = 1.0f |
|
) |
| |
◆ RenderPauseNotification()
void CHud::RenderPauseNotification |
( |
| ) |
|
|
private |
◆ RenderPlayerState()
void CHud::RenderPlayerState |
( |
const int |
ClientId | ) |
|
|
private |
◆ RenderRecord()
void CHud::RenderRecord |
( |
| ) |
|
|
private |
◆ RenderScoreHud()
void CHud::RenderScoreHud |
( |
| ) |
|
|
private |
◆ RenderSpectatorHud()
void CHud::RenderSpectatorHud |
( |
| ) |
|
|
private |
◆ RenderSuddenDeath()
void CHud::RenderSuddenDeath |
( |
| ) |
|
|
private |
◆ RenderTeambalanceWarning()
void CHud::RenderTeambalanceWarning |
( |
| ) |
|
|
private |
◆ RenderTextInfo()
void CHud::RenderTextInfo |
( |
| ) |
|
|
private |
◆ RenderVoting()
void CHud::RenderVoting |
( |
| ) |
|
|
private |
◆ RenderWarmupTimer()
void CHud::RenderWarmupTimer |
( |
| ) |
|
|
private |
◆ ResetHudContainers()
void CHud::ResetHudContainers |
( |
| ) |
|
◆ Sizeof()
virtual int CHud::Sizeof |
( |
| ) |
const |
|
inlineoverridevirtual |
Gets the size of the non-abstract component.
Implements CComponent.
◆ UpdateMovementInformationTextContainer()
void CHud::UpdateMovementInformationTextContainer |
( |
STextContainerIndex & |
TextContainer, |
|
|
float |
FontSize, |
|
|
float |
Value, |
|
|
char * |
pPrevValue, |
|
|
size_t |
Size |
|
) |
| |
|
private |
◆ m_aAmmoOffset
◆ m_aaPlayerPositionText
char CHud::m_aaPlayerPositionText[2][128] |
|
private |
◆ m_aaPlayerSpeedText
char CHud::m_aaPlayerSpeedText[2][128] |
|
private |
◆ m_aCursorOffset
◆ m_AirjumpEmptyOffset
int CHud::m_AirjumpEmptyOffset |
|
private |
◆ m_AirjumpOffset
int CHud::m_AirjumpOffset |
|
private |
◆ m_aLastPlayerSpeedChange
◆ m_aPlayerAngleText
char CHud::m_aPlayerAngleText[128] |
|
private |
◆ m_aPlayerPositionContainers
◆ m_aPlayerRecord
◆ m_aPlayerSpeed
int CHud::m_aPlayerSpeed[2] |
|
private |
◆ m_aPlayerSpeedTextContainers
◆ m_ArmorOffset
◆ m_aScoreInfo
◆ m_aWeaponOffset
◆ m_CollisionDisabledOffset
int CHud::m_CollisionDisabledOffset |
|
private |
◆ m_DDRaceEffectsTextContainerIndex
◆ m_DDRaceTime
◆ m_DeepFrozenOffset
int CHud::m_DeepFrozenOffset |
|
private |
◆ m_DummyCopyOffset
int CHud::m_DummyCopyOffset |
|
private |
◆ m_DummyHammerOffset
int CHud::m_DummyHammerOffset |
|
private |
◆ m_EmptyArmorOffset
int CHud::m_EmptyArmorOffset |
|
private |
◆ m_EmptyHealthOffset
int CHud::m_EmptyHealthOffset |
|
private |
◆ m_EndlessHookOffset
int CHud::m_EndlessHookOffset |
|
private |
◆ m_EndlessJumpOffset
int CHud::m_EndlessJumpOffset |
|
private |
◆ m_FinishTimeDiff
float CHud::m_FinishTimeDiff |
|
private |
◆ m_FinishTimeLastReceivedTick
int CHud::m_FinishTimeLastReceivedTick |
|
private |
◆ m_FlagOffset
◆ m_FPSTextContainerIndex
◆ m_FrameTimeAvg
float CHud::m_FrameTimeAvg |
|
private |
◆ m_GrenadeHitDisabledOffset
int CHud::m_GrenadeHitDisabledOffset |
|
private |
◆ m_GunHitDisabledOffset
int CHud::m_GunHitDisabledOffset |
|
private |
◆ m_HammerHitDisabledOffset
int CHud::m_HammerHitDisabledOffset |
|
private |
◆ m_HealthOffset
◆ m_Height
◆ m_HookHitDisabledOffset
int CHud::m_HookHitDisabledOffset |
|
private |
◆ m_HudQuadContainerIndex
int CHud::m_HudQuadContainerIndex |
|
private |
◆ m_JetpackOffset
int CHud::m_JetpackOffset |
|
private |
◆ m_LaserHitDisabledOffset
int CHud::m_LaserHitDisabledOffset |
|
private |
◆ m_LastLocalClientId
int CHud::m_LastLocalClientId = -1 |
|
private |
◆ m_LiveFrozenOffset
int CHud::m_LiveFrozenOffset |
|
private |
◆ m_LockModeOffset
int CHud::m_LockModeOffset |
|
private |
◆ m_PlayerAngleTextContainerIndex
◆ m_PracticeModeOffset
int CHud::m_PracticeModeOffset |
|
private |
◆ m_ServerRecord
float CHud::m_ServerRecord |
|
private |
◆ m_ShotgunHitDisabledOffset
int CHud::m_ShotgunHitDisabledOffset |
|
private |
◆ m_ShowFinishTime
bool CHud::m_ShowFinishTime |
|
private |
◆ m_SoloOffset
◆ m_Team0ModeOffset
int CHud::m_Team0ModeOffset |
|
private |
◆ m_TeleportGrenadeOffset
int CHud::m_TeleportGrenadeOffset |
|
private |
◆ m_TeleportGunOffset
int CHud::m_TeleportGunOffset |
|
private |
◆ m_TeleportLaserOffset
int CHud::m_TeleportLaserOffset |
|
private |
◆ m_TimeCpDiff
◆ m_TimeCpLastReceivedTick
int CHud::m_TimeCpLastReceivedTick |
|
private |
◆ m_Width
◆ MOVEMENT_INFORMATION_LINE_HEIGHT
constexpr float CHud::MOVEMENT_INFORMATION_LINE_HEIGHT = 8.0f |
|
staticconstexprprivate |
The documentation for this class was generated from the following files:
- src/game/client/components/hud.h
- src/game/client/components/hud.cpp