SDL Breakout Engine  0.1.0
An implementation of a Breakout game using sdl, implemented with efficient resource management.
Public Member Functions | Public Attributes | List of all members
Level Struct Reference

#include <LevelManager.hpp>

Public Member Functions

 Level (vector< vector< pair< Vector3D, BlockColor >>> const &given, int const &yoffset)
 

Public Attributes

vector< vector< pair< Vector3D, BlockColor > > > board
 the board is a matrix of positions to color. More...
 
int yoffset
 how far to shift the whole board down More...
 

Detailed Description

Represents a breakout level.

Constructor & Destructor Documentation

Level::Level ( vector< vector< pair< Vector3D, BlockColor >>> const &  given,
int const &  yoffset 
)

Sets data fields.

Parameters
giventhe board layout
yoffsethow far to shift the board down

Member Data Documentation

vector<vector<pair<Vector3D, BlockColor> > > Level::board

the board is a matrix of positions to color.

int Level::yoffset

how far to shift the whole board down


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