SDL Breakout Engine  0.1.0
An implementation of a Breakout game using sdl, implemented with efficient resource 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 unique_ptr< LevelLoad (const std::string &levelPath)
 

Detailed Description

Utility class for instantiating a level from a file.

The file grammar is the following: yoffset(y): int BlockColor(c): int

The file layout is a line with y followed by as many lines as desired, each filled with c's. For instance: 4 111111 222222 33012 401123

Constructor & Destructor Documentation

LevelManager::LevelManager ( )
delete

Delete all basic constructors.

LevelManager::LevelManager ( const LevelManager &  lm)
delete

Delete all basic constructors.

Member Function Documentation

unique_ptr< Level > LevelManager::Load ( const std::string &  levelPath)
static

Load a level from the given file path.

Parameters
levelPaththe file containing a valid level. An invalid level is undefined behavior.
void LevelManager::operator= ( const LevelManager &  lm)
delete

Delete all basic constructors.


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