Guest User

Untitled

a guest
Sep 10th, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #ifndef ASTEROID_HPP
  2. #define ASTEROID_HPP
  3.  
  4. #include <iostream>
  5. #include <SFML\Graphics.hpp>
  6.  
  7. class Asteroid
  8. {
  9. public:
  10. Asteroid(std::string texturePath,sf::Vector2f position, sf::Vector2f scaleFactor, float speed, float rotation);
  11. ~Asteroid();
  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. float mSpeed;
  25. float mRotation;
  26. };
  27.  
  28. #endif
Advertisement
Add Comment
Please, Sign In to add comment