-
Notifications
You must be signed in to change notification settings - Fork 2
/
Player.hpp
47 lines (39 loc) · 890 Bytes
/
Player.hpp
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
#ifndef PLAYER_H
#define PLAYER_H
#include<iostream>
#include<string>
#include<ostream>
#include<ncurses.h>
#include<stdlib.h>
#include"Niveaux.hpp"
#include"Creature.hpp"
#include"Position.hpp"
#include"Jeu.hpp"
#include"Inventaire.hpp"
using namespace std;
class Monstre;
class Jeu;
class Player : public Creature{
private :
int experience;
Inventaire * inv;
char objs[4] = {'W','M','O','R'};
public:
Player(Position*,int,int,char,int,int,int);
void putPlayer();
virtual void kungFu(Monstre*,Niveaux*,int);
void possibleMove(Position*,char,Jeu *);
void lireClavier(int,Jeu *);
void setExperience(int);
int getExperience(){return this->experience;}
Inventaire * getInventaire(){return this->inv;}
bool isContains(char,char*);
bool isSameObjet(char);
void afficherObjets();
char* getObjs(){return this->objs;}
void supprimeObjet(int);
virtual ~Player(){
delete inv;
}
};
#endif