Kebab.hpp 500 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include <SFML/Graphics.hpp>
  3. using namespace sf;
  4. #include "Shared.hpp"
  5. class Kebab:public Drawable, public Transformable {
  6. public:
  7. Kebab() = delete;
  8. Kebab(Shared* context);
  9. virtual ~Kebab();
  10. bool dead;
  11. void loop(float delta);
  12. Sprite keb;
  13. Sprite spr;
  14. private:
  15. virtual void draw(RenderTarget& target, RenderStates states) const override;
  16. Shared* _context;
  17. static Texture _tex;
  18. static Texture _tex2;
  19. Clock clk;
  20. bool released;
  21. bool phasing;
  22. Clock phasecd;
  23. Clock rotcd;
  24. };