forked from lanmonster/frogger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Frogger.h
56 lines (40 loc) · 803 Bytes
/
Frogger.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
$file: Frogger Remake ( For the console)
$purpose: Frogger Game Engine
$author: Kyle Lanmon / Michael Boyle (Softrix)
*/
#ifndef _H_ENGINE
#define _H_ENGINE
#include <Windows.h>
#include <conio.h>
#include "Graphics.h"
#include "Ascii.h"
#include "Logs.h"
#include "Cars.h"
#include "Frog.h"
class Engine
{
private:
Graphics console;
Log Logs[5];
Car Cars[5];
Frog Frogger;
int score;
int lives;
bool isPlaying, gameOver;
void Init();
// keybaord stuff
void readKeyboard();
void waitSpaceBar();
// collision checks
bool checkCarCollision();
int checkLogCollision();
// ascii screens
void doWelcome();
void doGameOver();
void doWin();
public:
Engine();
void Run();
};
#endif // !_H_ENGINE