blob: 7f7f7ce37e326d3bd5f0fda28b2a42c033b7e2e9 (
plain)
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
|
#ifndef PLAYER_H
#define PLAYER_H
#include "object.h"
#include "point.h"
#include "velocity.h"
#include "gun.h"
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
class Player : public Object {
private:
float health;
Gun gun;
sf::Color color;
public:
Player (const Point &point, const Velocity &velocity, sf::Color &color, const Gun &gun);
void setGun(const Gun &gun);
void setHealth(const float health);
void setColor(const sf::Color &color);
float getHealth();
sf::Color getColor();
Gun getGun();
void draw(sf::RenderWindow &window);
};
#endif
|