#ifndef Map_H #define Map_H #include #include #include #include "KSGNetwork.h" using namespace Framework; struct Tile { int id; int grad; int xPos; int yPos; }; class Map { private: RCArray< Array< int > > *map; Rahmen *feld; Tile t; int score; int scoreCheck; int breite; int höhe; int geschwindigkeit; int neuTempo; double next; bool beendet; bool sr; bool rend; double gameTime; Datei capture; Critical cs; KSGClient::MinigameServerClient *klient; RandomGenerator *rGen; int ref; public: // Konstruktor Map( KSGClient::MinigameServerClient *klient ); // Destruktor ~Map(); // nicht constant void reset( Text *zOptionen ); void doPublicMausEreignis( MausEreignis &me ); void doTastaturEreignis( TastaturEreignis &te ); bool tick( double tickVal ); void render( Bild &zRObj ); void speichern(); // constant int getScore() const; bool istBeendet() const; // Reference Counting Map *getThis(); Map *release(); }; #endif