Handles the GameObjects in the active state.
More...
#include <gameobjectmanager.h>
Inherited by GameObjectEditor, and UiObjectManager.
Protected Attributes |
GameObjectList | mGameObjects |
| The list of objects in the scene.
|
std::shared_ptr< Camera > | mCamera |
Detailed Description
Handles the GameObjects in the active state.
A class to simplify handling of the objects, and simple collision interactions between them
Member Function Documentation
void GameObjectManager::CheckMouseEvents |
( |
| ) |
|
|
virtual |
Testing the new method for mouse handling
void GameObjectManager::HandleMouseEvent |
( |
const SDL_MouseButtonEvent & |
mouseEvent | ) |
|
|
virtual |
Handle mouse clicks, run through the active game objects find what was clicked, and call it
- Parameters
-
mouseEvent | The mouse event that we're processing |
Reimplemented in GameObjectEditor, and UiObjectManager.
void GameObjectManager::HandleMouseEvent |
( |
const SDL_MouseMotionEvent & |
mouseEvent | ) |
|
|
virtual |
Handle Mouse motion, check if the mouse entered/exited an object
- Parameters
-
mouseEvent | The mouse event that we're processing |
Reimplemented in UiObjectManager.
void GameObjectManager::Move |
( |
float |
deltaT | ) |
|
|
virtual |
void GameObjectManager::Register |
( |
std::shared_ptr< GameObject > |
obj | ) |
|
Register a GameObject to be managed by the manager
- Parameters
-
obj | The object to register |
void GameObjectManager::Register |
( |
std::shared_ptr< Camera > |
camera | ) |
|
Register the scene camera with the manager so that it can be used in checking which objects to deal with
- Parameters
-
Json::Value GameObjectManager::Save |
( |
| ) |
|
Serialize all the game object data to a Json::Value and return it
- Returns
- Json::Value containing the gameobject data
void GameObjectManager::SetCollisionMaps |
( |
Map * |
map | ) |
|
Setup object collision maps
- Parameters
-
map | The map to get the collision maps from |
The documentation for this class was generated from the following files:
- C:/Users/Will/Documents/Programs/LPCGame/src/gameobjectmanager.h
- C:/Users/Will/Documents/Programs/LPCGame/src/gameobjectmanager.cpp