Norbert's Game Engine v200
Loading...
Searching...
No Matches
eDoer Class Reference

#include <Doer.hpp>

Inheritance diagram for eDoer:
eEntity eObject eBase

Public Member Functions

eTags & Tags ()
 
template<typename T >
void AddModule (eString name)
 
void RemoveModule (eString name)
 
eModule * GetModule (eString name)
 
eUniqueMap< eModule > & GetModules ()
 
void SetWorld (eWorld *world)
 
eWorld * World ()
 
void Destroy (const bool vl=true)
 
bool ShouldDestroy ()
 
- Public Member Functions inherited from eEntity
eProperties & Properties ()
 
eAlarm & Alarm ()
 
- Public Member Functions inherited from eObject
virtual bool Initialize ()
 
virtual void Update ()
 
virtual void Render ()
 
virtual void Unload ()
 
void Sleep ()
 
void Awake ()
 
bool IsAwake ()
 
- Public Member Functions inherited from eBase
template<typename T >
T * Cast (eBase *obj)
 Cast class to base.
 

Public Attributes

eString mClassName
 
- Public Attributes inherited from eEntity
bool bCanUpdate = false
 
bool bCanRender = false
 

Additional Inherited Members

- Protected Attributes inherited from eObject
bool bAwake = false
 

Detailed Description

An entity holding modules

Definition at line 19 of file Doer.hpp.

Member Function Documentation

◆ AddModule()

template<typename T >
void eDoer::AddModule ( eString name)
inline

Definition at line 25 of file Doer.hpp.

26 {
27 if (mModules.Find(name)) return;
28 mModules.Push(std::make_unique<T>(), name);
29 }

◆ Destroy()

void eDoer::Destroy ( const bool vl = true)

Definition at line 39 of file Doer.cpp.

40{
41 bShouldDestroy = vl;
42}

◆ GetModule()

eModule * eDoer::GetModule ( eString name)

Definition at line 17 of file Doer.cpp.

18{
19 if (mModules.Find(name))
20 return mModules[name];
21 return nullptr;
22}

◆ GetModules()

eUniqueMap< eModule > & eDoer::GetModules ( )

Definition at line 24 of file Doer.cpp.

25{
26 return mModules;
27}

◆ RemoveModule()

void eDoer::RemoveModule ( eString name)

Definition at line 12 of file Doer.cpp.

13{
14 mModules.Pop(name);
15}

◆ SetWorld()

void eDoer::SetWorld ( eWorld * world)

Definition at line 29 of file Doer.cpp.

30{
31 mWorld = world;
32}

◆ ShouldDestroy()

bool eDoer::ShouldDestroy ( )

Definition at line 44 of file Doer.cpp.

45{
46 return bShouldDestroy;
47}

◆ Tags()

eTags & eDoer::Tags ( )

Definition at line 7 of file Doer.cpp.

8{
9 return mTags;
10}

◆ World()

eWorld * eDoer::World ( )

Definition at line 34 of file Doer.cpp.

35{
36 return mWorld;
37}

Member Data Documentation

◆ mClassName

eString eDoer::mClassName

Definition at line 41 of file Doer.hpp.


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