-
Notifications
You must be signed in to change notification settings - Fork 0
/
Game.h
53 lines (46 loc) · 941 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
41
42
43
44
45
46
47
48
49
50
51
52
53
//
// Game.h
// prototype
//
// Created by Chris Morgan on 2015-03-08.
// Copyright (c) 2015 Chris Morgan. All rights reserved.
//
#ifndef __prototype__Game__
#define __prototype__Game__
#include "SDLInit.h"
#include <iostream>
#include <vector>
#include "Net.h"
#include "Platform.h"
#include "Player.h"
#include "Puck.h"
#include "ScoreBoard.h"
using namespace std;
class Game{
public :
Game(float gt=GAMELENGTH, int gs=WINNINGSCORE);
~Game();
void reset();
void start();
bool paused;
private :
// Game Objects For execution...
Player* player1;
Player* player2;
Net* net1;
Net* net2;
Puck* puck;
ScoreBoard* score;
// int score;// temporary member until score board is finished
vector<Platform*> platforms;
// end Game Objects
float gameTime;
int endScore;
// member functions...
bool isGameOver();
bool isGoal();
void handleInput();
void init();
void close();
};
#endif /* defined(__prototype__Game__) */