1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #ifndef Map_H
- #define Map_H
- #include <Bild.h>
- #include <Random.h>
- #include <Datei.h>
- #include "KSGNetwork.h"
- using namespace Framework;
- struct Tile
- {
- int id;
- int grad;
- int xPos;
- int yPos;
- };
- class Map
- {
- private:
- RCArray< Array< int > > *map;
- LRahmen *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 doMausEreignis( 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
|