Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SystemMenu Class Reference

#include <SystemMenu.h>

Public Member Functions

 SystemMenu ()
 
virtual ~SystemMenu ()
 
void Activate ()
 
void Deactivate ()
 
void Toggle ()
 
bool IsActive () const
 
void AddItem (const std::string &item)
 
void RemoveItem (const std::string &item)
 
const std::vector< std::string > & Items () const
 

Static Public Member Functions

static SystemMenuGetInstance ()
 
static SystemMenuGet ()
 

Private Attributes

std::string name
 
bool m_active = false
 
std::vector< std::string > m_items
 

Detailed Description

Definition at line 12 of file SystemMenu.h.

Constructor & Destructor Documentation

◆ SystemMenu()

SystemMenu::SystemMenu ( )
inline

Definition at line 15 of file SystemMenu.h.

References m_items, name, and SYSTEM_LOG.

◆ ~SystemMenu()

virtual SystemMenu::~SystemMenu ( )
inlinevirtual

Definition at line 24 of file SystemMenu.h.

References SYSTEM_LOG.

Member Function Documentation

◆ Activate()

void SystemMenu::Activate ( )

Definition at line 12 of file SystemMenu.cpp.

References m_active, and SYSTEM_LOG.

Referenced by Toggle().

+ Here is the caller graph for this function:

◆ AddItem()

void SystemMenu::AddItem ( const std::string &  item)

Definition at line 32 of file SystemMenu.cpp.

References GetComponentTypeID_Static(), and m_items.

+ Here is the call graph for this function:

◆ Deactivate()

void SystemMenu::Deactivate ( )

Definition at line 20 of file SystemMenu.cpp.

References m_active, and SYSTEM_LOG.

Referenced by Toggle().

+ Here is the caller graph for this function:

◆ Get()

static SystemMenu & SystemMenu::Get ( )
inlinestatic

Definition at line 30 of file SystemMenu.h.

References GetInstance().

+ Here is the call graph for this function:

◆ GetInstance()

SystemMenu & SystemMenu::GetInstance ( )
static

Definition at line 6 of file SystemMenu.cpp.

References GetComponentTypeID_Static().

Referenced by Get(), and GameEngine::Initialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsActive()

bool SystemMenu::IsActive ( ) const
inline

Definition at line 35 of file SystemMenu.h.

References m_active.

◆ Items()

const std::vector< std::string > & SystemMenu::Items ( ) const
inline

Definition at line 40 of file SystemMenu.h.

References m_items.

◆ RemoveItem()

void SystemMenu::RemoveItem ( const std::string &  item)

Definition at line 38 of file SystemMenu.cpp.

References GetComponentTypeID_Static(), and m_items.

+ Here is the call graph for this function:

◆ Toggle()

void SystemMenu::Toggle ( )

Definition at line 27 of file SystemMenu.cpp.

References Activate(), Deactivate(), and m_active.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_active

bool SystemMenu::m_active = false
private

Definition at line 44 of file SystemMenu.h.

Referenced by Activate(), Deactivate(), IsActive(), and Toggle().

◆ m_items

std::vector<std::string> SystemMenu::m_items
private

Definition at line 45 of file SystemMenu.h.

Referenced by AddItem(), Items(), RemoveItem(), and SystemMenu().

◆ name

std::string SystemMenu::name
private

Definition at line 43 of file SystemMenu.h.

Referenced by SystemMenu().


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