Space Sheep Xtreme Turbo Penguin Edition
Page principale
Pages associées
Classes
Fichiers
Liste des fichiers
Membres de fichier
Joueur.h
Aller à la documentation de ce fichier.
1
#ifndef JOUEUR_H
2
#define JOUEUR_H
3
11
#include "
Vaisseau.h
"
12
#include "
Ennemi.h
"
13
#include <string>
14
15
class
Tir
;
16
class
GameModel
;
17
25
class
Joueur
:
public
Vaisseau
26
{
27
private
:
28
int
my_vies;
29
int
my_power;
30
int
my_bombs;
31
int
my_numberOfShoots;
32
33
public
:
34
45
Joueur
(
int
power,
TypeTir
* typeTir,
int
vies,
int
pvMax,
int
bombs,
float
shootingSpeed);
46
47
51
void
moveLeft
();
52
56
void
moveRight
();
57
61
void
moveDown
();
62
66
void
moveUp
();
67
68
74
void
shoot
(
GameModel
* model);
75
82
std::vector<Tir*>::iterator
isShot
(
GameModel
* model)
const
;
83
90
bool
isHitByEnemy
(
GameModel
* model);
91
99
void
useBomb
(
GameModel
* model);
100
101
108
void
addPower
(
int
power,
GameModel
* model);
109
115
void
addHP
(
int
hp);
116
117
125
int
getVies
()
const
;
126
134
int
getPower
()
const
;
135
143
int
getBombs
()
const
;
144
152
int
getNumberOfShoots
()
const
;
153
161
std::string
getStringBombs
()
const
;
162
170
std::string
getStringPower
()
const
;
171
172
176
void
setVies
(
int
vies);
177
181
void
setBombs
(
int
bombs);
182
186
void
setPower
(
int
i);
187
191
void
setNumberOfShoots
(
int
n);
192
193
};
194
195
#endif
Généré le Dimanche Juin 2 2013 19:39:59 pour Space Sheep Xtreme Turbo Penguin Edition par
1.8.4