Asteroid.h 464 B

12345678910111213141516171819
  1. #pragma once
  2. #include <Model2D.h>
  3. #include "Laser.h"
  4. #include <Random.h>
  5. using namespace Framework;
  6. class Asteroid : public Model2DObject
  7. {
  8. private:
  9. int id;
  10. WeltInfo wInfo;
  11. public:
  12. Asteroid( int id, Vertex pos, Vertex speed, float rot, float rotS, Model2DData *data );
  13. bool tick( const WeltInfo &info, double zeit ) override;
  14. Asteroid *istTreffer( Laser *zL, RandomGenerator *zRandG, int &asteroidId, Vertex &pos );
  15. int getId() const;
  16. };