Map.h 956 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #ifndef Map_H
  2. #define Map_H
  3. #include <Bild.h>
  4. #include <Random.h>
  5. #include "../../../Include/KSGKlientV.h"
  6. using namespace Framework;
  7. struct Tile
  8. {
  9. int id;
  10. int grad;
  11. int xPos;
  12. int yPos;
  13. };
  14. class Map
  15. {
  16. private:
  17. RCArray< Array< int > > *map;
  18. LRahmen *feld;
  19. Tile t;
  20. int score;
  21. int breite;
  22. int höhe;
  23. int geschwindigkeit;
  24. int neuTempo;
  25. double next;
  26. bool beendet;
  27. bool sr;
  28. bool rend;
  29. double gameTime;
  30. Datei capture;
  31. Critical cs;
  32. MinigameKlientV *klient;
  33. RandomGenerator *rGen;
  34. int ref;
  35. public:
  36. // Konstruktor
  37. Map( MinigameKlientV *klient );
  38. // Destruktor
  39. ~Map();
  40. // nicht constant
  41. void reset( Text *zOptionen );
  42. void doMausEreignis( MausEreignis &me );
  43. void doTastaturEreignis( TastaturEreignis &te );
  44. bool tick( double tickVal );
  45. void render( Bild &zRObj );
  46. void speichern();
  47. // constant
  48. int getScore() const;
  49. bool istBeendet() const;
  50. // Reference Counting
  51. Map *getThis();
  52. Map *release();
  53. };
  54. #endif