-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRules.h
49 lines (38 loc) · 837 Bytes
/
Rules.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
//
// Rules.h
// battleeee
//
// Created by Ingy on 1/4/15.
// Copyright (c) 2015 Ingy. All rights reserved.
//
#ifndef __battleeee__Rules__
#define __battleeee__Rules__
#include "Settings.h"
#include <SFML/Graphics.hpp>
using namespace sf;
class Rules
{
public:
Rules(RenderWindow *, Settings *);
~Rules();
void initialize();
void gameloop();
bool handleEvents();
void renderScreen();
void update();
private:
Settings * S;
RenderWindow * name;
Font pageFont;
Text title;
Text backText;
vector <Text> rules;
string textSource;
Texture backTexture;
Sprite backImage;
Sprite cursor;
Texture cursorTexture;
int cursorXpos, cursorYpos;
// member for every drawable object
};
#endif /* defined(__battleeee__Rules__) */