Shkyera Engine
Easy to use, game engine for Python
shkyera::Log Class Referenceabstract

A base class for logs that contain textual content. More...

#include <ConsoleWidget.hpp>

Inheritance diagram for shkyera::Log:
[legend]

Public Member Functions

 Log (std::string content)
 Constructor to create a log with the specified content. More...
 
virtual void draw () const
 Virtual method to draw the log in the user interface. More...
 
virtual uint64_t getIconId () const =0
 Virtual method to retrieve an icon identifier associated with the log. More...
 

Public Attributes

std::string _content
 The text content of the log. More...
 

Detailed Description

A base class for logs that contain textual content.

Constructor & Destructor Documentation

◆ Log()

shkyera::Log::Log ( std::string  content)

Constructor to create a log with the specified content.

Parameters
contentThe text content of the log.

Member Function Documentation

◆ draw()

void shkyera::Log::draw ( ) const
virtual

Virtual method to draw the log in the user interface.

◆ getIconId()

virtual uint64_t shkyera::Log::getIconId ( ) const
pure virtual

Virtual method to retrieve an icon identifier associated with the log.

Returns
An icon identifier.

Implemented in shkyera::LogError, shkyera::LogSuccess, shkyera::LogInfo, and shkyera::LogVerbose.

Member Data Documentation

◆ _content

std::string shkyera::Log::_content

The text content of the log.


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