diff options
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/player.h b/src/player.h new file mode 100644 index 0000000..7f7f7ce --- /dev/null +++ b/src/player.h @@ -0,0 +1,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 |