Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

WinLoose/WinLoose.h

Committer:
AhmedPlaymaker
Date:
2019-04-26
Revision:
49:441c32f6603e
Parent:
46:dc7dccae9f9e

File content as of revision 49:441c32f6603e:

#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