Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

GameEngine/WinLoose/WinLoose.h

Committer:
AhmedPlaymaker
Date:
2019-04-26
Revision:
51:387249f9b333
Parent:
WinLoose/WinLoose.h@ 49:441c32f6603e
Child:
83:329da564799a

File content as of revision 51:387249f9b333:

#ifndef WINLOOSE_H
#define WINLOOSE_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"

class WinLoose
{
    public:
    
    WinLoose();
    ~WinLoose();
    
    /** Level Complete
    *
    *   This function prepares the game for the next level and initialises WinLoose and obtains required class addresses to use in other functions.
    */
    int LevelComplete(N5110 &lcd, Gamepad &pad, int level);
    
    /** Display Level
    *
    *   Displays the level on screen.
    */
    void displayLevel(N5110 &lcd, int level);
    
    /** Game Over
    *
    *   This function does the required tasks to implement a loosing screen.
    */
    void GameOver(N5110 &lcd, Gamepad &pad);

    private:
    char bufferlevel[14];  //this helps me print the level on screen.
    
    

};
#endif