Space Sheep Xtreme Turbo Penguin Edition
Page principale
Pages associées
Classes
Fichiers
Liste des fichiers
Membres de fichier
TypeEnnemi.h
Aller à la documentation de ce fichier.
1
#ifndef TYPE_ENNEMI_H
2
#define TYPE_ENNEMI_H
3
11
#include <string>
12
#include "
TypeTir.h
"
13
19
enum
ShootPattern
20
{
21
SIMPLE
,
22
M_TRIPLE
,
23
TOPLAYER
,
24
HALFCIRCLE
25
};
26
27
/* M-TRIPLE = S
28
/|\
29
/ | \
30
*/
31
39
class
TypeEnnemi
40
{
41
private
:
42
std::string my_sprite_filename;
43
int
my_score;
44
int
my_speed;
45
float
my_shootingSpeed;
// cadence de tir, en secondes (tir 1 fois toutes les x secondes)
46
int
my_hp;
47
int
my_h;
48
int
my_w;
49
TypeTir
* my_typeTir;
50
ShootPattern
my_shootPattern;
51
52
public
:
53
57
TypeEnnemi
();
58
72
TypeEnnemi
(
int
score,
int
speed,
float
shootingSpeed,
int
hp,
int
w,
int
h,
TypeTir
* typeTir,
ShootPattern
shootPattern, std::string filename);
73
77
virtual
~TypeEnnemi
();
78
79
//Accesseurs
80
81
89
int
getScore
()
const
;
90
98
int
getSpeed
()
const
;
99
107
float
getShootingSpeed
()
const
;
108
116
int
getHP
()
const
;
117
125
int
getW
()
const
;
126
134
int
getH
()
const
;
135
143
std::string
getFilename
()
const
;
144
152
TypeTir
*
getTypeTir
()
const
;
153
161
ShootPattern
getShootPattern
()
const
;
162
163
164
};
165
166
#endif
Généré le Dimanche Juin 2 2013 19:39:59 pour Space Sheep Xtreme Turbo Penguin Edition par
1.8.4