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
OptionsManager Class Reference

#include <OptionsManager.h>

Public Member Functions

 OptionsManager ()
 
virtual ~OptionsManager ()
 
void Set (OptionFlags f)
 
void Clear (OptionFlags f)
 
void Toggle (OptionFlags f)
 
bool IsSet (OptionFlags f) const
 

Static Public Member Functions

static OptionsManagerGetInstance ()
 
static OptionsManagerGet ()
 

Private Attributes

string name
 
OptionFlags flags_ = OptionFlags::None
 

Detailed Description

Definition at line 25 of file OptionsManager.h.

Constructor & Destructor Documentation

◆ OptionsManager()

OptionsManager::OptionsManager ( )
inline

Definition at line 28 of file OptionsManager.h.

References name, Set(), ShowDebugInfo, and SYSTEM_LOG.

+ Here is the call graph for this function:

◆ ~OptionsManager()

virtual OptionsManager::~OptionsManager ( )
inlinevirtual

Definition at line 34 of file OptionsManager.h.

References SYSTEM_LOG.

Member Function Documentation

◆ Clear()

void OptionsManager::Clear ( OptionFlags  f)
inline

Definition at line 48 of file OptionsManager.h.

References flags_, and GetComponentTypeID_Static().

Referenced by Toggle().

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

◆ Get()

static OptionsManager & OptionsManager::Get ( )
inlinestatic

Definition at line 44 of file OptionsManager.h.

References GetInstance().

+ Here is the call graph for this function:

◆ GetInstance()

static OptionsManager & OptionsManager::GetInstance ( )
inlinestatic

Definition at line 39 of file OptionsManager.h.

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:

◆ IsSet()

bool OptionsManager::IsSet ( OptionFlags  f) const
inline

Definition at line 58 of file OptionsManager.h.

References flags_, GetComponentTypeID_Static(), and None.

Referenced by Toggle().

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

◆ Set()

void OptionsManager::Set ( OptionFlags  f)
inline

Definition at line 47 of file OptionsManager.h.

References flags_, and GetComponentTypeID_Static().

Referenced by OptionsManager(), and Toggle().

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

◆ Toggle()

void OptionsManager::Toggle ( OptionFlags  f)
inline

Definition at line 49 of file OptionsManager.h.

References Clear(), GetComponentTypeID_Static(), IsSet(), and Set().

+ Here is the call graph for this function:

Member Data Documentation

◆ flags_

OptionFlags OptionsManager::flags_ = OptionFlags::None
private

Definition at line 63 of file OptionsManager.h.

Referenced by Clear(), IsSet(), and Set().

◆ name

string OptionsManager::name
private

Definition at line 62 of file OptionsManager.h.

Referenced by OptionsManager().


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