Potato Engine
Loading...
Searching...
No Matches
DebugInfo Class Reference
Inheritance diagram for DebugInfo:
Widget Tickable UIElement

Public Member Functions

 DebugInfo (std::string UID)
Public Member Functions inherited from Widget
 Widget (std::string UID)
 Constructs widget.
std::string GetUID () const
 Gets unique ID of widget.
template<typename ElemType>
ElemType * AddElement (std::string name)
 Creates and adds WidgetElement to widget screen.
const std::unordered_map< std::string, WidgetElement * > & GetAllElements () const
 Gets map of all elements.
WidgetElementGetElement (std::string name)
 Gets specific element by name.
Public Member Functions inherited from Tickable
bool isTicking () const
 Checks if object is ticking.
void SetTicking (bool isEnabled)
 Sets tick state for object.
Public Member Functions inherited from UIElement
Vector2 GetScreenSize () const
 Gets size of UI.
void SetScreenSize (const Vector2 &size)
 Sets size of UI.
Vector2 GetScreenPosition () const
 Gets screen position of UI.
void SetScreenPosition (const Vector2 &ScreenPosition)
 Sets screen position of UI.
void AddScreenOffset (const Vector2 &offset)
 Adds offset to UI position.
bool isVisible () const
 Checks if UI is visible.
void SetVisibility (bool visibility)
 Sets visibility of UI.

Protected Member Functions

virtual void Tick (float dt) override
 Update tick event.

Detailed Description

Definition at line 12 of file DebugInfo.hpp.

Constructor & Destructor Documentation

◆ DebugInfo()

DebugInfo::DebugInfo ( std::string UID)

Definition at line 8 of file DebugInfo.cpp.

◆ ~DebugInfo()

DebugInfo::~DebugInfo ( )

Definition at line 41 of file DebugInfo.cpp.

Member Function Documentation

◆ Tick()

void DebugInfo::Tick ( float dt)
overrideprotectedvirtual

Update tick event.

This function is called every tick on the update step. Put all gameplay functionality that should run every update here (custom movement logic, etc.)

Parameters
dtDeltatime; time elapsed since last frame in ms
Note
Always call base method when overriding:
void Class::Tick() {
BaseClass::Tick();
// ...
}

Reimplemented from Tickable.

Definition at line 29 of file DebugInfo.cpp.