2048GameOverState.h 822 Bytes
Newer Older
Konrad McClure's avatar
Konrad McClure committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#ifndef C2048GAMEOVERSTATE_H
#define C2048GAMEOVERSTATE_H

#include "GameState.h"
#include "../Testings/SaveLoad/SL2048.h"
#include <iostream>
#include <string>

class C2048GameOverState : public CGameState
{
    public:
        void Init();
        void Cleanup();
        
        void Pause();
        void Resume();
        
        void HandleEvents(CGameEngine* game);
        void Update(CGameEngine* game);
        void Draw(CGameEngine* game);
        
22
        static C2048GameOverState* Instance() { return &m_2048GameOverState; }
Konrad McClure's avatar
Konrad McClure committed
23 24 25 26 27 28 29 30 31 32
        
    protected:
        C2048GameOverState() {}
    
    private:
        static C2048GameOverState m_2048GameOverState;
        char input;
        string menuTitle;
        SL2048 highscores;
        bool isInit = false;
33
        bool scoreSet = false;
Konrad McClure's avatar
Konrad McClure committed
34 35 36 37
        
};

#endif