-
Notifications
You must be signed in to change notification settings - Fork 0
/
Practice.h
52 lines (45 loc) · 973 Bytes
/
Practice.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
//
// Practice.h
// prototype
//
// Created by Chris Morgan on 2015-03-08.
// Copyright (c) 2015 Chris Morgan. All rights reserved.
//
#ifndef __prototype__Practice__
#define __prototype__Practice__
#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 Practice{
public :
Practice(float gt=GAMELENGTH, int gs=WINNINGSCORE);
~Practice();
void reset();
void start();
private :
// Practice 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 Practice Objects
float practiceTime;
int endScore;
// member functions...
bool isPracticeOver();
bool isGoal();
void handleInput();
void init();
void close();
};
#endif /* defined(__prototype__Practice__) */