Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #pragma once
  2. #pragma once
  3. #include <SFML/Graphics.hpp>
  4. class Character : public sf::Drawable
  5. {
  6. private:
  7. bool movable;
  8. sf::RectangleShape rectShape;
  9. public:
  10. Character(float xPos, float yPos, float width, float height, sf::Color color);
  11. float getXUpperLeftCorner();
  12. float getYUpperLeftCorner();
  13. float getWidth();
  14. float getHeight();
  15. void setMovable(bool moveable);
  16. void move();
  17.  
  18. // Inherited via Drawable
  19. virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
  20. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement