123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #ifndef Map_H
- #define Map_H
- #include <Bild.h>
- #include <Random.h>
- #include "../../../Include/KSGKlientV.h"
- using namespace Framework;
- class Map
- {
- private:
- RCArray< Array< int > > *map;
- int score;
- int breite;
- int höhe;
- int geschwindigkeit;
- int bAnzahl;
- double next;
- bool beendet;
- bool rend;
- double gameTime;
- Datei capture;
- Critical cs;
- MinigameKlientV *klient;
- RandomGenerator *rGen;
- int ref;
- // private
- void remove( int x, int y );
- public:
- // Konstruktor
- Map( MinigameKlientV *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
|