forked from littlebalup/Zelda3T
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProjectile.h
60 lines (50 loc) · 1.3 KB
/
Projectile.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
/*
Zelda Oni Link Begins
Copyright (C) 2006-2008 Vincent Jouillat
Please send bugreports with examples or suggestions to www.zeldaroth.fr
*/
#ifndef __PROJECTILE_H__
#define __PROJECTILE_H__
#include "Listable.h"
#include "Common.h"
class Jeu;
class Projectile : public Listable {
public :
Projectile(Jeu* jeu, int type, Direction dir, int a, int b, int vit);
~Projectile();
void draw(SDL_Surface* gpScreen);
Projectile* getSuivant();
int getId();
void setVie(int v);
private :
void move(int dx, int dy);
void attaque();
void dessinChaine(SDL_Surface* gpScreen);
void dessinTrainee(SDL_Surface* gpScreen);
void testAgrippe();
void changeType(int type);
void fin();
Jeu* gpJeu;
int id;
Direction direction;
int x;
int y;
int anim;
int max;
int vanim;
int vie;
int hauteur;
int vitesse;
SDL_Surface* image;
int etape; //pour les objets revenant
int chemin; //chemin parcourru
int chmax; //chemin max
int w;
int h;
int zx; //zone de la flèche
int zy;
int zw;
int zh;
Uint32 lastAnimTime;
};
#endif // Projectile.h