Map.h 902 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. class Map
  8. {
  9. private:
  10. RCArray< Array< int > > *map;
  11. int score;
  12. int breite;
  13. int höhe;
  14. int geschwindigkeit;
  15. int bAnzahl;
  16. double next;
  17. bool beendet;
  18. bool rend;
  19. double gameTime;
  20. Datei capture;
  21. Critical cs;
  22. MinigameKlientV *klient;
  23. RandomGenerator *rGen;
  24. int ref;
  25. // private
  26. void remove( int x, int y );
  27. public:
  28. // Konstruktor
  29. Map( MinigameKlientV *klient );
  30. // Destruktor
  31. ~Map();
  32. // nicht constant
  33. void reset( Text *zOptionen );
  34. void doMausEreignis( MausEreignis &me );
  35. void doTastaturEreignis( TastaturEreignis &te );
  36. bool tick( double tickVal );
  37. void render( Bild &zRObj );
  38. void speichern();
  39. // constant
  40. int getScore() const;
  41. bool istBeendet() const;
  42. // Reference Counting
  43. Map *getThis();
  44. Map *release();
  45. };
  46. #endif