SUNENGINE 0.0.2
A simple and bright C++ game engine.
 
Loading...
Searching...
No Matches
GameObjectAttorney.h
1#ifndef GameObjectAttorney_H
2#define GameObjectAttorney_H
3
4#include "GameObject.h"
5
13
15{
16public:
22 {
23 private:
24 friend class GameObjectEntryCommand;
25 friend class GameObjectExitCommand;
30 static void Connect(GameObject* go) { go->ConnectToScene(); }
35 static void Disconnect(GameObject* go) { go->DisconnectFromScene(); }
36 };
37};
38
39#endif
Provides access to the registration related functions of GameObject.
Definition GameObjectAttorney.h:22
static void Disconnect(GameObject *go)
Disconnects the GameObject from the scene.
Definition GameObjectAttorney.h:35
static void Connect(GameObject *go)
Connects the GameObject to the scene.
Definition GameObjectAttorney.h:30
Provides controlled access to the GameObject class for specific classes.
Definition GameObjectAttorney.h:15
Base class for all GameObjects in the engine.
Definition GameObject.h:21
void DisconnectFromScene()
Disconnects the GameObject from the scene.
Definition GameObject.cpp:44
void ConnectToScene()
Connects the GameObject to the scene.
Definition GameObject.cpp:37