-
Notifications
You must be signed in to change notification settings - Fork 5
/
player.h
38 lines (34 loc) · 850 Bytes
/
player.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
#ifndef PLAYER_H
#define PLAYER_H
#include "sprite.h"
enum PLAYERS { PLAYER1, PLAYER2, PLAYER_DIGGING };
class PLAYER : public SPRITE
{
public:
PLAYER(IDirect3DDevice9 *d, int nbr_of_frames, int screen_width, int screen_height);
~PLAYER();
void nextFrame(void);
void backFrame(void);
void nextBarFrame(void);
void backBarFrame(void);
void climbDownFrame(void);
void climbUpFrame(void);
void fallingFrame(void);
void setFrameState(unsigned int index);
bool enterLevel(void);
bool digRightFrame(void);
bool digLeftFrame(void);
bool drillFrame(void);
bool pickRightFrame(void);
bool pickLeftFrame(void);
bool ropeFrame(void);
bool gooRightFrame(void);
bool gooLeftFrame(void);
unsigned int goldCollected;
unsigned int itemHeld;
unsigned int lives;
unsigned int score;
unsigned int energy;
unsigned int energyStart;
};
#endif