forked from littlebalup/ZeldaROTH
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Personnage.h
62 lines (53 loc) · 1.32 KB
/
Personnage.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
/*
Zelda Return of the Hylian
Copyright (C) 2005-2008 Vincent Jouillat
Please send bugreports with examples or suggestions to www.zeldaroth.fr
*/
#ifndef __PERSONNAGE_H__
#define __PERSONNAGE_H__
#include <SDL/SDL_image.h>
#include "ZoneRect.h"
#include "Common.h"
class Personnage : public Listable {
public :
Personnage();
~Personnage();
void saveEmpl();
int getX();
int getY();
int getW();
int getH();
void setX(int i);
void setY(int i);
int getXDep();
int getYDep();
void setXDep(int i);
void setYDep(int i);
int getDirDep();
void setDirDep(Direction d);
ZoneRect* getZoneBase();
void setDirection(Direction d);
Direction getDirection();
int getVie();
int getVieMax();
int getInvincible();
protected :
int x;
int y;
int xdep;
int ydep;
int vie;
int viemax;
int invincible;
int type;
Direction direction;
int h;
int w;
int anim;
int animmax;
Direction dirdep;
SDL_Surface* image;
Uint32 lastAnimTime; // date de la dernière anim
ZoneRect* gpZoneBase; // zone à vérifier pour les colisions
};
#endif // Personnage.h