Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef ASTEROID_HPP
- #define ASTEROID_HPP
- #include <iostream>
- #include <SFML\Graphics.hpp>
- class Asteroid
- {
- public:
- Asteroid(std::string texturePath,sf::Vector2f position, sf::Vector2f scaleFactor, float speed, float rotation);
- ~Asteroid();
- void update(float frametime);
- void render(sf::RenderWindow *rw);
- void handle();
- const sf::Sprite &getSprite() {return *pSprite;);
- private:
- sf::Texture *pTexture;
- sf::Sprite *pSprite;
- float mSpeed;
- float mRotation;
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment