1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- #ifndef MiniGames_H
- #define MiniGames_H
- #include <Fenster.h>
- #include <Animation.h>
- #include "MiniGame.h"
- #include <Thread.h>
- #include <Knopf.h>
- #include <MiniGameV.h>
- using namespace Framework;
- class MiniGames; // aus dieser Datei
- class MGSuchen : private Thread
- {
- private:
- MiniGames *mGames;
- public:
- // Konstruktor
- MGSuchen( MiniGames *mGames );
- // Destruktor
- ~MGSuchen();
- // nicht constant
- void thread() override;
- };
- class MGLaden : public Thread
- {
- private:
- Text *name;
- MiniGameV *game;
- public:
- // Konstruktor
- MGLaden( char *name );
- // Destruktor
- ~MGLaden();
- // nicht constant
- void thread();
- // constant
- bool fertig() const;
- MiniGameV *zGame() const;
- };
- class MiniGames : public Zeichnung
- {
- private:
- Punkt begPos;
- Punkt begGröße;
- Punkt pos1;
- Punkt größe1;
- Punkt pos2;
- Punkt größe2;
- Punkt bildschirmGröße;
- LRahmen *rahmen;
- Animation2D *laden;
- TextFeld *suchFilter;
- TextFeld *suchName;
- Knopf *suchen;
- RCArray< MiniGame > *games;
- MGLaden *mgl;
- Schrift *schrift;
- bool mgInitialized;
- int dg;
- bool aktuell;
- bool gefiltert;
- int animation;
- int alpha;
- bool sichtbar;
- int prozent1;
- int prozent2;
- double tickVal;
- int alpha2;
- public:
- // Konstruktor
- MiniGames( Schrift *zSchrift, Fenster *zNachLoginFenster, int x );
- // Destruktor
- ~MiniGames();
- // nicht constant
- void setSichtbar( bool sicht );
- void addMiniGame( MiniGame *mg );
- void setAktuell( bool aktuell, int dg = 0 );
- void filter();
- void doMausEreignis( MausEreignis &me ) override;
- void doTastaturEreignis( TastaturEreignis &te ) override;
- bool tick( double z ) override;
- void render( Bild &zRObj ) override;
- // constant
- bool istAnimiert() const;
- bool istSichtbar() const;
- };
- #endif
|