forked from littlebalup/Zelda3T
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSnipe.h
59 lines (49 loc) · 1.15 KB
/
Snipe.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
/*
Zelda Oni Link Begins
Copyright (C) 2006-2008 Vincent Jouillat
Please send bugreports with examples or suggestions to www.zeldaroth.fr
*/
#ifndef __SNIPE_H__
#define __SNIPE_H__
#include "Listable.h"
#include "Common.h"
class Jeu;
class Snipe : public Listable {
public :
Snipe(Jeu* jeu, int type, double a, double b, double da, double db);
~Snipe();
void draw(SDL_Surface* gpScreen);
bool renvoit(Direction dir);
Snipe* getSuivant();
int getX();
int getY();
int getW();
int getH();
private :
void depl();
void attaque();
void dessin(SDL_Surface* gpScreen);
void fin();
Jeu* gpJeu;
int id;
double x;
double y;
double anglx;
double angly;
int anim;
int max;
int vanim;
int vie;
int hauteur;
SDL_Surface* image;
int w;
int h;
bool renvoie;
int force;
bool renvoyable;
bool rebond;
int element;
double historique[8][2];
Uint32 lastAnimTime;
};
#endif // Snipe.h