-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplayerlib.h
45 lines (35 loc) · 829 Bytes
/
playerlib.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
#ifndef PLAYER_H
#define PLAYER_H
#include <iostream>
#include "defines.h"
#include "mediator.h"
class playerlib
{
public:
playerlib();
void setInput(int commands[INPUT_COMMAND_COUNT]);
void move();
double get_x();
double get_y();
bool can_move_x(double xinc);
bool can_move_y(double yinc);
unsigned int getLives() const;
unsigned int getBombs() const;
unsigned int getPoints() const;
e_DIRECTION getDirection() const;
double getFly_accel() const;
double getFly_speed() const;
private:
double pos_x;
double pos_y;
double xinc;
double yinc;
double fly_speed;
double fly_accel;
int input_commands[INPUT_COMMAND_COUNT];
unsigned int lives;
unsigned int bombs;
unsigned int points;
e_DIRECTION direction;
};
#endif // PLAYER_H