World structure that contains Layers and Cameras.
More...
#include <map.hpp>
|
| virtual auto | OnTick () -> bool |
| | Virtual function called once each tick.
|
| |
World structure that contains Layers and Cameras.
◆ Map()
| KTech::Map::Map |
( |
Engine & | engine, |
|
|
std::string | name = "" ) |
Construct a Map.
- Parameters
-
| engine | Parent Engine. |
| name | String name. |
◆ AddCamera()
| auto KTech::Map::AddCamera |
( |
const ID< Camera > & | camera | ) |
-> bool |
◆ AddLayer()
| auto KTech::Map::AddLayer |
( |
const ID< Layer > & | layer | ) |
-> bool |
Add a Layer.
- Parameters
-
- Returns
true if added the Layer. false if given Layer doesn't exist in Memory, or already in this Map.
◆ OnTick()
| auto KTech::Map::OnTick |
( |
| ) |
-> bool |
|
protectedvirtual |
◆ RemoveAllCameras()
| auto KTech::Map::RemoveAllCameras |
( |
| ) |
-> bool |
Remove all contained Cameras.
- Returns
true if removed all Cameras. false if there are no Cameras in this Map.
◆ RemoveAllLayers()
| auto KTech::Map::RemoveAllLayers |
( |
| ) |
-> bool |
Remove all contained Layers.
- Returns
true if removed all Layers. false if there are no Layers in this Map.
◆ RemoveCamera()
| auto KTech::Map::RemoveCamera |
( |
const ID< Camera > & | camera | ) |
-> bool |
Remove a Camera.
- Parameters
-
- Returns
true if removed the Camera. false if the given Camera isn't contained by this Map.
◆ RemoveLayer()
| auto KTech::Map::RemoveLayer |
( |
const ID< Layer > & | layer | ) |
-> bool |
Remove a Layer.
- Parameters
-
| layer | The ID of the Layer to remove. |
- Returns
true if removed the Layer. false if the given Layer isn't contained by this Map.
The documentation for this class was generated from the following files:
- ktech/world/map.hpp
- ktech/world/map.cpp