forked from littlebalup/Zelda3T
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathObjet.h
52 lines (42 loc) · 974 Bytes
/
Objet.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
/*
Zelda Oni Link Begins
Copyright (C) 2006-2008 Vincent Jouillat
Please send bugreports with examples or suggestions to www.zeldaroth.fr
*/
#ifndef __OBJET_H__
#define __OBJET_H__
#include "Listable.h"
#include "Common.h"
class Jeu;
class Objet : public Listable {
public :
Objet(Jeu* jeu, int i, int j, int typ, int num=0, int persistant=0);
~Objet();
void draw(SDL_Surface* gpScreen);
void ramasse();
int getX();
int getY();
int getW();
int getH();
int getVie();
void setVie(int v);
void revie();
int getType();
Objet* getSuivant();
private :
Jeu* gpJeu;
int vie;
int x;
int y;
int type;
int id;
int vanim;
int anim;
int w;
int h;
int max;
int persist;
Uint32 lastAnimTime;
SDL_Surface* image;
};
#endif // Objet.h