 |
Rune Engine
Version 0.2.7-alpha
Documentation for how to make games using the Rune Engine.
|
9 #ifndef GAMEOBJECT_INCLUDE_H
10 #define GAMEOBJECT_INCLUDE_H
13 #include "transform.h"
15 #include <Entities\component.h>
16 #include <Renderer\renderWindow.h>
17 #include <Events\subject.h>
28 std::vector<rune::Component*> objectComponents;
38 int getNumComponents(
void);
42 std::vector<Component*>& getComponentList();
46 template<
class classVariable>
50 for(
int i = 0; i < objectComponents.size(); i++)
53 if (
typeid(*objectComponents[i]) ==
typeid(classVariable))
56 return dynamic_cast<classVariable*
>(objectComponents[i]);
rune::Transform transform
The location, scale, and rotation of the object in the world.
Definition: gameObject.h:32
A subject that can be watched for signals by observers.
Definition: subject.h:21
A component of a rune::GameObject, this class is used to add functionality to a object in the game wo...
Definition: component.h:23
classVariable * getComponent()
Definition: gameObject.h:47
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