1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #ifndef Map_H
- #define Map_H
- #include <Bild.h>
- #include <Random.h>
- #include "../../../Include/KSGKlientV.h"
- using namespace Framework;
- struct Pos
- {
- short x;
- short y;
- };
- class Map
- {
- private:
- Array< Pos > *schlange;
- Array< Pos > *ziele;
- LRahmen *feld;
- LRahmen *kam;
- LRahmen *map;
- Pos kamPos;
- bool move;
- int score;
- int breite;
- int höhe;
- int geschwindigkeit;
- int zAnzahl;
- double next;
- int richtung;
- bool beendet;
- int addAnzahl;
- int neuAnzahl;
- bool sr;
- bool rend;
- double gameTime;
- Datei capture;
- Critical cs;
- MinigameKlientV *klient;
- RandomGenerator *rGen;
- int ref;
- 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
|