DeadPlayer.h 893 B

123456789101112131415161718192021222324252627282930313233343536
  1. #pragma once
  2. #include <Model2D.h>
  3. using namespace Framework;
  4. class DeadPlayer : public Object2D
  5. {
  6. private:
  7. Model2DObject *m2a;
  8. Model2DObject *m2b;
  9. double alpha;
  10. struct SaveData
  11. {
  12. Vertex posA;
  13. Vertex speedA;
  14. float rotA;
  15. float rotSA;
  16. Vertex posB;
  17. Vertex speedB;
  18. float rotB;
  19. float rotSB;
  20. double alpha;
  21. };
  22. SaveData alt;
  23. public:
  24. DeadPlayer( Model2DData *mda, Model2DData *mdb, Vertex posa, Vertex posb, Vertex speedA, Vertex speedB, float curRotA, float curRotB, float rotA, float rotB, Textur2D *zTextur );
  25. ~DeadPlayer();
  26. void render( Mat3< float > &kamMat, Bild &zRObj, const char *kamName ) override;
  27. bool tick( const WeltInfo &info, double zeit ) override;
  28. Rect2< float > getBoundingBox() const override;
  29. bool isFinished() const;
  30. void save();
  31. void load();
  32. };