Kern Fowler / Mbed 2 deprecated Donkey_Kong_Game

Dependencies:   mbed

lib/GameEngine/GameEngine.h

Committer:
Kern_EL17KJTF
Date:
2019-05-08
Revision:
22:d265f506446b
Parent:
21:1f44f5493c0d
Child:
28:10937e02a0d6

File content as of revision 22:d265f506446b:

#ifndef GAMEENGINE_H
#define GAMEENGINE_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "Donkey.h"
#include "Barrel.h"
#include "Banana.h"

/** GameEngine Class
*@brief This class is running and controling the main game functions.
*@author Kern Fowler
*@version 1.0
*@date May 2019
*/

class GameEngine {

public: 
/** GameEngine Constructor 
@brief Builds my default GameEngine constructor.
@details This does not have any setup. 
*/
GameEngine();
/** GameEngine Destructor 
@brief Builds my default GameEngine destructor.
@details This does not have any setup. 
*/
~GameEngine();
// Mutators

/** 
*@brief Controls the main game.
*@param pad The Gamepad class is used.
*@param lcd The N5110 class is used.
*@param barrel The Barrel class is used.
*@param banana The Banana class is used.
*@param dky The Donkey class is used.
*@details Runs the main functions of the game in correct order.
*/
void gameengine_run(Gamepad &pad, N5110 &lcd, Barrel &barrel, Banana &banana, Donkey &dky);
/** 
*@brief Shows game over screen.
*@param pad The Gamepad class is used.
*@param lcd The N5110 class is used.
*@param banana The Banana class is used.
*@details Prints the gameover screen. Prints various text, including total player score.
*/
void gameengine_score(Gamepad &pad, N5110 &lcd, Banana &banana);
};

#endif