SDL Breakout Engine
0.1.0
An implementation of a Breakout game using sdl, implemented with efficient resource management.
|
#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< Level > | Load (const std::string &levelPath) |
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
|
delete |
Delete all basic constructors.
|
delete |
Delete all basic constructors.
|
static |
Load a level from the given file path.
levelPath | the file containing a valid level. An invalid level is undefined behavior. |
|
delete |
Delete all basic constructors.