RWorld class
The container for all gameobjects. Synonymous to Scene graph.
Contents
Constructors, destructors, conversion operators
- RWorld()
- Constructor.
- RWorld(std::vector<RGameObject*>& gameObjects)
- Constructor.
- ~RWorld()
- Destructor.
Public functions
- void tick()
- Call tick functions of all objects in the world once.
- void add(RGameObject* gameObject)
- Add a gameobject to the world.
- void add(const std::vector<RGameObject*>& gameObjects)
- Add an array of gameobjects to the world.
- void setObjectArray(std::vector<RGameObject*>& gameObjects)
- Set the array of gameObjects in use.
- auto getActiveObjects() const -> const std::vector<RGameObject*>&
- Returns the array of gameObjects in use.
Function documentation
               Rubeus::
            Constructor.
| Parameters | |
|---|---|
| gameObjects | An array of gameObjects. | 
              void Rubeus::
            Add a gameobject to the world.
| Parameters | |
|---|---|
| gameObject | The gameobject to be added. | 
              void Rubeus::
            Add an array of gameobjects to the world.
| Parameters | |
|---|---|
| gameObjects | The gameobjects to be added. | 
              void Rubeus::
            Set the array of gameObjects in use.
| Parameters | |
|---|---|
| gameObjects | Array of gameObjects in use. | 
              const std::vector<RGameObject*>& Rubeus::
            Returns the array of gameObjects in use.
| Returns | The gameObject array in use | 
|---|