|
| LevelMap (std::string pName="Level") |
|
void | Load () override |
| Loads the level. Must be implemented by derived classes.
|
|
void | Update () override |
| Updates the level. Must be implemented by derived classes.
|
|
void | Close () override |
| Closes the level. Must be implemented by derived classes.
|
|
| LevelMap (std::string pName="Level") |
|
void | Load () override |
| Loads the level. Must be implemented by derived classes.
|
|
void | Update () override |
| Updates the level. Must be implemented by derived classes.
|
|
void | Close () override |
| Closes the level. Must be implemented by derived classes.
|
|
| Level (std::string pTitle="Scene") |
| Constructs a new level with the given title.
|
|
| ~Level () |
| Destroys the level and cleans up resources.
|
|
void | SetManager (RendererGL *pRenderer, Physics *pPhysics, LevelManager *pManager) |
| Sets the renderer, physics, and manager for the level.
|
|
void | OpenLevel (const std::string &pLevelName) |
| Opens a new level by name.
|
|
bool | LineTrace (Vector3 start, Vector3 direction, float maxDistance, raycastHit &hit, bool debugPersistant=false, Actor *self=nullptr) |
| Performs a line trace (raycast) in the level.
|
|
void | InternalUpdate () |
| Internal update function called by the engine.
|
|
void | Unload () |
| Unloads the level and cleans up resources.
|
|
template<typename T , typename... Args> |
T * | AddActor (Args &&... args) |
| Adds an actor of type T to the level.
|
|
template<typename T > |
void | DestroyActor (Actor *pActor) |
| Removes an actor from the level.
|
|
template<typename T > |
std::vector< T * > | GetAllActorOfType () |
| Gets all actors of a specific type.
|
|
template<typename T > |
T * | GetActorOfType () |
| Gets the first actor of a specific type.
|
|
RendererGL & | GetRenderer () const |
| Gets the renderer for the level.
|
|
Physics & | GetPhysics () const |
| Gets the physics system for the level.
|
|