World structure that contains Layer
s and Camera
s.
More...
#include <map.hpp>
|
virtual auto | OnTick () -> bool |
| Virtual function called once each tick.
|
|
World structure that contains Layer
s and Camera
s.
◆ 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 Camera
s.
- Returns
true
if removed all Camera
s. false
if there are no Camera
s in this Map
.
◆ RemoveAllLayers()
auto KTech::Map::RemoveAllLayers |
( |
| ) |
-> bool |
Remove all contained Layer
s.
- Returns
true
if removed all Layer
s. false
if there are no Layer
s 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