|
ProtoZed
awesome branch
A simple but powerful game framework
|
A system. More...
Public Member Functions | |
| System (const SystemType &type, Application &application) | |
| virtual | ~System () |
| virtual bool | Start () |
| Starts the system. | |
| virtual bool | Stop () |
| Stops the system. | |
| virtual void | Update (float deltaTime)=0 |
| Runs an update. | |
| const SystemType & | GetType () const |
| Gets the type. | |
| bool | IsStarted () const |
Public Member Functions inherited from PZ::EventHandler | |
| EventHandler () | |
| virtual | ~EventHandler () |
| bool | SubscribeTo (EventHandler &handler) |
| bool | UnsubscribeTo (EventHandler &handler) |
| template<class T , class EventT > | |
| bool | RegisterEvent (T *obj, void(T::*memFn)(EventT &)) |
| template<class T , class EventT > | |
| bool | UnregisterEvent (T *obj, void(T::*memFn)(EventT &)) |
| void | HandleEvent (const Event &e) |
| void | EmitEvent (const Event &e) const |
Protected Member Functions | |
| Application & | GetApplication () const |
Protected Member Functions inherited from PZ::NonCopyable | |
| NonCopyable () | |
A system.
This is something that will run every frame and do some work.
|
inline |
|
inlinevirtual |
|
inlineprotected |
|
inline |
Gets the type.
|
inline |
|
inlinevirtual |
Starts the system.
Reimplemented in PZ::Renderer, and PZ::Sound.
|
inlinevirtual |
Stops the system.
Reimplemented in PZ::Renderer, and PZ::Sound.
|
pure virtual |
Runs an update.
| deltaTime | Time since the last frame. |
Implemented in PZ::Input, PZ::Input2, PZ::Renderer, and PZ::Sound.
1.8.2