-
Notifications
You must be signed in to change notification settings - Fork 2
/
Creature.hpp
50 lines (43 loc) · 935 Bytes
/
Creature.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
48
49
50
#ifndef CREATURE_H
#define CREATURE_H
#include"Position.hpp"
#include<iostream>
#include<string>
#include<ostream>
#include<ncurses.h>
#include<stdlib.h>
#include"Objet.hpp"
class Niveaux;
using namespace std;
class Creature {
protected:
Position *position;
int santer;
char symbol;
int atack;
int rapide;
int defance;
public:
Creature(Position*,int,int,char,int,int);
Creature();
void setSymbol(char);
void setRapide(int);
void setDefance(int);
int getRapide(){return this->rapide;}
int getDefance(){return this->defance;}
char getSymbol(){return this->symbol;}
Position *getPosition(){return this->position;}
int getSanter(){return this->santer;}
void setPosition(Position *);
void setSanter(int);
void setAtack(int);
int getAtack(){return this->atack;}
void putCreature(Niveaux *);
virtual void kungFu();
int operator-(const Creature *n) const ;
void operator+(Objet *);
virtual ~Creature(){
delete position;
}
};
#endif