Tetris/scorestate.hpp
2014-11-07 20:47:50 +01:00

47 lines
660 B
C++

#ifndef SCORESTATE_H
#define SCORESTATE_H
# include <iostream>
# include <vector>
# include <algorithm>
# include <fstream>
# include "gamestate.hpp"
# include "scoreitem.hpp"
using namespace std;
class ScoreState : public GameState
{
public:
void Init();
void Clean();
void Pause();
void Resume();
void HandleEvents ( game * Game );
void Update ( game * Game );
void Draw ( game * Game );
// Implement Singleton Pattern
static ScoreState * Instance()
{
return &m_ScoreState;
}
protected:
ScoreState() {}
private:
void Load();
static ScoreState m_ScoreState;
vector<ScoreItem> Items;
};
#endif // SCORESTATE_H