-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUser.h
47 lines (35 loc) · 829 Bytes
/
User.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
//
// User.h
// battleeee
//
// Created by Ingy on 12/29/14.
// Copyright (c) 2014 Ingy. All rights reserved.
//
#ifndef __battleeee__User__
#define __battleeee__User__
#include <string>
#include <SFML/Graphics.hpp>
using namespace sf;
class User
{
public:
User();
~User();
// setters
void setNbOfGPl(int New);
void setNbOfGW(int New);
void setAvatar(int avPosition);
void setAvatarRE(); // sets a random avatar to be used for the enemy
// getters
int getNbOfGL()const;
int getNbOfGPl()const;
int getNbOfGW()const;
private:
int nbOfGPl; // number of games played
int nbOfGW; // number of games Won
std::string name;
Texture playerAvatars;
Texture enemyAvatars;
Sprite avatar;
};
#endif /* defined(__battleeee__User__) */