Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #pragma once
- #include <SFML/Graphics.hpp>
- class Character : public sf::Drawable
- {
- private:
- bool movable;
- sf::RectangleShape rectShape;
- public:
- Character(float xPos, float yPos, float width, float height, sf::Color color);
- float getXUpperLeftCorner();
- float getYUpperLeftCorner();
- float getWidth();
- float getHeight();
- void setMovable(bool moveable);
- void move();
- // Inherited via Drawable
- virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement