forked from leesihoo0919/CrazzyClimbing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGame.h
40 lines (31 loc) · 756 Bytes
/
Game.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
#pragma once
#include <iostream>
#include <string>
#include "SDL.h"
#include "SDL_ttf.h"
#include "SDL_mixer.h"
#include "SDL_image.h"
// Game Phases
const int PHASE_INTRO = 0;
const int PHASE_HOME = 1;
const int PHASE_MODE1 = 2;
const int PHASE_MODE2 = 3;
const int PHASE_MODE3 = 4;
const int PHASE_ENDING1 = 5;
const int PHASE_ENDING2 = 6;
const int PHASE_ENDING3 = 7;
void InitGame();
void ClearGame();
extern int g_current_game_phase;
extern bool g_flag_running;
extern SDL_Renderer* g_renderer;
extern SDL_Window* g_window;
class PhaseInterface
{
public:
PhaseInterface() {};
virtual ~PhaseInterface() {};
virtual void HandleEvents() = 0;
virtual void Update() = 0;
virtual void Render() = 0;
};