-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGameOverState.h
42 lines (29 loc) · 918 Bytes
/
GameOverState.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// GameOverState.h
// SDL Game Programming Book
//
// Created by shaun mitchell on 17/02/2013.
// Copyright (c) 2013 shaun mitchell. All rights reserved.
//
#ifndef __SDL_Game_Programming_Book__GameOverState__
#define __SDL_Game_Programming_Book__GameOverState__
#include <iostream>
#include <vector>
#include "MenuState.h"
class GameObject;
class GameOverState : public MenuState
{
public:
virtual ~GameOverState() {}
virtual void update();
virtual void render();
virtual bool onEnterImpl();
virtual bool onExit();
virtual std::string getStateID() const { return s_gameOverID; }
virtual void setCallbacks(const std::vector<Callback>& callbacks);
private:
static void s_gameOverToMain();
static void s_restartPlay();
static const std::string s_gameOverID;
};
#endif /* defined(__SDL_Game_Programming_Book__GameOverState__) */