PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
DebugMonitor Class Reference

Private Member Functions

void DebugMonitor ()
 
void Init ()
 
void SetHealth (float value)
 
void SetBlood (float value)
 
void SetLastDamage (string value)
 
void SetFramerate (float current, float min, float max, float avg)
 
protected void SetFramerateText (TextWidget widget, float value)
 
void SetPosition (vector value)
 
void Show ()
 
void Hide ()
 
string CalculateMapTile (vector pos)
 
int GetTileFomFraction (float fraction)
 
void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
bool IsVisible ()
 

Private Attributes

protected bool m_IsUsingKBM
 
private Widget m_WidgetRoot
 
private TextWidget m_WindowLabelText
 
private TextWidget m_VersionValue
 
private TextWidget m_HealthValue
 
private TextWidget m_BloodValue
 
private TextWidget m_DmgSourceValue
 
private TextWidget m_MapTileValue
 
private TextWidget m_PositionValue
 
private TextWidget m_CopyPositionInfo
 
private TextWidget m_FPSValue
 
private TextWidget m_FPSMinValue
 
private TextWidget m_FPSMaxValue
 
private TextWidget m_FPSAvgValue
 
private int m_FPSTextDefaultColor
 

Constructor & Destructor Documentation

◆ DebugMonitor()

Member Function Documentation

◆ CalculateMapTile()

string CalculateMapTile ( vector  pos)
inlineprivate

◆ GetTileFomFraction()

int GetTileFomFraction ( float  fraction)
inlineprivate

Referenced by CalculateMapTile().

◆ Hide()

void Hide ( )
inlineprivate

References m_WidgetRoot.

◆ Init()

◆ IsVisible()

bool IsVisible ( )
inlineprivate

References m_WidgetRoot.

◆ OnInputDeviceChanged()

void OnInputDeviceChanged ( EInputDeviceType  pInputDeviceType)
inlineprivate

References m_IsUsingKBM.

Referenced by Init().

◆ SetBlood()

void SetBlood ( float  value)
inlineprivate

References m_BloodValue, and float::ToString().

◆ SetFramerate()

void SetFramerate ( float  current,
float  min,
float  max,
float  avg 
)
inlineprivate

Update the framerate values displayed within the debug monitor with new ones.

References m_FPSAvgValue, m_FPSMaxValue, m_FPSMinValue, m_FPSValue, and SetFramerateText().

◆ SetFramerateText()

protected void SetFramerateText ( TextWidget  widget,
float  value 
)
inlineprivate

Sets the provided text widget to display framerate value. Formats and colors the widget according to the value.

References COLOR_RED, COLOR_YELLOW, m_FPSTextDefaultColor, and Math::Round().

Referenced by SetFramerate().

◆ SetHealth()

void SetHealth ( float  value)
inlineprivate

References m_HealthValue, and float::ToString().

◆ SetLastDamage()

void SetLastDamage ( string  value)
inlineprivate

References m_DmgSourceValue.

◆ SetPosition()

◆ Show()

void Show ( )
inlineprivate

References m_WidgetRoot.

Field Documentation

◆ m_BloodValue

private TextWidget m_BloodValue
private

Referenced by DebugMonitor(), and SetBlood().

◆ m_CopyPositionInfo

private TextWidget m_CopyPositionInfo
private

Referenced by DebugMonitor(), and SetPosition().

◆ m_DmgSourceValue

private TextWidget m_DmgSourceValue
private

Referenced by DebugMonitor(), and SetLastDamage().

◆ m_FPSAvgValue

private TextWidget m_FPSAvgValue
private

Referenced by DebugMonitor(), and SetFramerate().

◆ m_FPSMaxValue

private TextWidget m_FPSMaxValue
private

Referenced by DebugMonitor(), and SetFramerate().

◆ m_FPSMinValue

private TextWidget m_FPSMinValue
private

Referenced by DebugMonitor(), and SetFramerate().

◆ m_FPSTextDefaultColor

private int m_FPSTextDefaultColor
private

Referenced by DebugMonitor(), and SetFramerateText().

◆ m_FPSValue

private TextWidget m_FPSValue
private

Referenced by DebugMonitor(), and SetFramerate().

◆ m_HealthValue

private TextWidget m_HealthValue
private

Referenced by DebugMonitor(), and SetHealth().

◆ m_IsUsingKBM

protected bool m_IsUsingKBM
private

◆ m_MapTileValue

private TextWidget m_MapTileValue
private

Referenced by DebugMonitor(), and SetPosition().

◆ m_PositionValue

private TextWidget m_PositionValue
private

Referenced by DebugMonitor(), and SetPosition().

◆ m_VersionValue

private TextWidget m_VersionValue
private

Referenced by DebugMonitor(), and Init().

◆ m_WidgetRoot

private Widget m_WidgetRoot
private

Referenced by DebugMonitor(), Hide(), Init(), IsVisible(), and Show().

◆ m_WindowLabelText

private TextWidget m_WindowLabelText
private

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