SDL SPOOKY PLATFORMER ENGINE  0.2.0
An implementation of a platformer using sdl, implemented using an entity component system and efficient collision management.
Public Member Functions | Static Public Member Functions | List of all members
LevelManager Class Reference

#include <LevelManager.hpp>

Public Member Functions

 LevelManager () = delete
 Delete all basic constructors. More...
 
 LevelManager (const LevelManager &lm) = delete
 Delete all basic constructors. More...
 
void operator= (const LevelManager &lm) = delete
 Delete all basic constructors. More...
 

Static Public Member Functions

static pair< GameObject *, std::vector< GameObject * > > Load (const std::string &levelPath, const TileMapDescription &descrip)
 

Detailed Description

File format: rows:x cols:x layers:x tileRange:x,y data:x,y,z,...

Constructor & Destructor Documentation

LevelManager::LevelManager ( )
delete

Delete all basic constructors.

LevelManager::LevelManager ( const LevelManager &  lm)
delete

Delete all basic constructors.

Member Function Documentation

pair< GameObject *, std::vector< GameObject * > > LevelManager::Load ( const std::string &  levelPath,
const TileMapDescription descrip 
)
static

Load a level from the given file path. Adds colliders to the walls and other objects specified in the tilemap

Parameters
levelPaththe file containing a valid level. An invalid level is undefined behavior.
Returns
a pair with the tilemap gameobject and tilemap colliders
void LevelManager::operator= ( const LevelManager &  lm)
delete

Delete all basic constructors.


The documentation for this class was generated from the following files: