-
Notifications
You must be signed in to change notification settings - Fork 0
Class Level
Alex Ricciardi edited this page Apr 8, 2023
·
1 revision
/*
Renders ball, paddle, FPS, and Bricks
Child class of the Instance class
*/
//----------------------------------------------------------------------------------
//----------------------------------------------------------------------------------
// variables (Private)
//----------------------------------------------------------------------------------
// Bricks
vector<int> brickType;
vector<Brick> bricks;
/*---------------------------------------------------
constructor-1
brick type, sound collision
----------------------------------------------------*/
Level(vector<int> &brickType);
//----------------------------------------------------------------------------------
//----------------------------------------------------------------------------------
// Accessors Methods
//----------------------------------------------------------------------------------
/*----------------------------------------------------
Render the Level class
-----------------------------------------------------*/
void render();
//----------------------------------------------------------------------------------
//----------------------------------------------------------------------------------
// Mutators Methods
//---------------------------------------------------------------------------------
/*----------------------------------------------------
Updates ball and bricks collision
-----------------------------------------------------*/
void update();
private:
//----------------------------------------------------------------------------------
//----------------------------------------------------------------------------------
// Class Operation Methods (private)
//----------------------------------------------------------------------------------
/*---------------------------------------------------
Display Ball, paddle, Bricks
----------------------------------------------------*/
void draw();
/*----------------------------------------------------
Build the bricks the game (private)
Utilized by constructors
-----------------------------------------------------*/
void buildBricks();