mirror of
https://github.com/Floriansylvain/whateversfml.git
synced 2026-08-19 11:43:22 +02:00
21 lines
436 B
C++
21 lines
436 B
C++
#ifndef PLAYER_HPP
|
|
#define PLAYER_HPP
|
|
|
|
#include <SFML/Graphics/CircleShape.hpp>
|
|
#include <SFML/Graphics/Color.hpp>
|
|
#include <SFML/Graphics/RenderWindow.hpp>
|
|
#include <SFML/Graphics/View.hpp>
|
|
|
|
class Player {
|
|
public:
|
|
Player(float size, sf::Color color);
|
|
|
|
void update(double dt, sf::RenderWindow &window, const sf::View &view);
|
|
void render(sf::RenderWindow &window);
|
|
|
|
private:
|
|
sf::CircleShape circleShape;
|
|
};
|
|
|
|
#endif // PLAYER_HPP
|