Map.h 922 B

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