-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcPlayer.h
52 lines (37 loc) · 835 Bytes
/
cPlayer.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
#pragma once
#include "cBicho.h"
#define PLAYER_START_CX 3
#define PLAYER_START_CY 2
//nau-alpha.png
#define IMG_WIDTH_PLAYER 166
#define IMG_HEIGHT_PLAYER 86
// nau-alpha2.png
#define IMG_WIDTH_PLAYER1 269
#define IMG_HEIGHT_PLAYER1 269
class cPlayer: public cBicho
{
public:
cPlayer();
~cPlayer();
void Draw(int tex_id);
void Shoot(int type);
void Advance();
int getLives();
void setLives(int lives);
int getHurted();
void setHurted(int hurted);
bool isAdvancing;
bool getIsKilledByRight();
void setIsKilledByRight(bool killed);
bool getBackWindow();
void setBackWindow(bool b);
void setNauSelected(int nauSeleted);
int getNauSelected();
private:
int lives;
float steps;
bool isKilledByRight;
int hurted;
bool backWindow;
int nauSelected;
};