mirror of
https://github.com/Floriansylvain/whateversfml.git
synced 2026-08-19 11:43:22 +02:00
refac: clean base
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user