-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGameW.h
66 lines (51 loc) · 1.09 KB
/
GameW.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
57
58
59
60
61
62
63
64
65
66
//
// GameW.h
// battleeee
//
// Created by Ingy on 1/25/15.
// Copyright (c) 2015 Ingy. All rights reserved.
//
#ifndef __battleeee__GameW__
#define __battleeee__GameW__
#include "Settings.h"
#include <SFML/Graphics.hpp>
#include "Board.h"
#include "Computer.h"
#include "Player.h"
using namespace sf;
class GameW
{
public:
GameW(RenderWindow *, Settings *);
~GameW();
void initialize();
void gameloop();
bool handleEvents();
void renderScreen();
bool update();
private:
// Game objects
Board playerB, computerB;
Computer comp;
Player play;
bool playerT;
// SFML objects
Settings * S;
RenderWindow * name;
Font pageFont;
Text title;
Text backText;
vector <Text> options;
string textSource;
Texture backTexture;
Sprite backImage;
Sprite cursor;
Texture cursorTexture;
int cursorXpos, cursorYpos;
Sprite playerGrid;
Sprite oppGrid;
Texture gridTexture;
Mouse m;
// member for every drawable object
};
#endif /* defined(__battleeee__GameW__) */