Guest User

Untitled

a guest
Sep 10th, 2014
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #ifndef PLAYER_HPP
  2. #define PLAYER_HPP
  3.  
  4. #include <iostream>
  5. #include <SFML\Graphics.hpp>
  6.  
  7. class Player
  8. {
  9. public:
  10. Player(std::string texturePath,sf::Vector2f position);
  11. ~Player();
  12.  
  13. void update(float frametime);
  14. void render(sf::RenderWindow *rw);
  15. void handle();
  16.  
  17. const sf::Sprite &getSprite() {return *pSprite;);
  18.  
  19. private:
  20.  
  21. sf::Texture *pTexture;
  22. sf::Sprite *pSprite;
  23.  
  24. };
  25.  
  26. #endif
Advertisement
Add Comment
Please, Sign In to add comment