 |
Rune Engine
Version 0.2.7-alpha
Documentation for how to make games using the Rune Engine.
|
12 #include <Events/Observer.h>
13 #include <Events/signal.h>
15 #ifndef BEHAVIOR_H_INCLUDED
16 #define BEHAVIOR_H_INCLUDED
28 bool isEnabled =
true;
38 virtual void update();
40 virtual void fixedUpdate();
44 void setEnable(
bool newEnable);
46 bool isComponentEnabled(
void);
Object that is used as a signal to notify observers of action.
Definition: signal.h:19
An interface that allows objects to watch a subject for signals, and perform some action when notifie...
Definition: observer.h:18
A component of a rune::GameObject, this class is used to add functionality to a object in the game wo...
Definition: component.h:23
Component()=default
Default constructor to set up.
The main namespace to be used for interfacing with the engine.
Definition: animator.h:21
Entity control system main object used for all objects in the scene.
Definition: gameObject.h:23
void onNotify(Signal const &signal) override
A virtual method to be overridden by a concrete implementation of the observer class.
Definition: component.h:48