123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- #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;
- class MGSuchen : private Thread
- {
- private:
- MiniGames *mGames;
- public:
-
- MGSuchen( MiniGames *mGames );
-
- ~MGSuchen();
-
- void thread() override;
- };
- class MGLaden : public Thread
- {
- private:
- Text *name;
- MiniGameV *game;
- public:
-
- MGLaden( char *name );
-
- ~MGLaden();
-
- void thread();
-
- bool fertig() const;
- MiniGameV *zGame() const;
- };
- class MiniGames : public Zeichnung, MinigameAPI
- {
- 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;
- bool mgInitialized;
- int dg;
- bool aktuell;
- bool gefiltert;
- int animation;
- int alpha;
- bool sichtbar;
- int prozent1;
- int prozent2;
- double tickVal;
- bool fullscreen;
- int alpha2;
- int slo;
- unsigned char minAlpha;
- public:
-
- MiniGames( Fenster *zNachLoginFenster, int x );
-
- ~MiniGames();
-
- void setSichtbar( bool sicht );
- void addMiniGame( MiniGame *mg );
- void setAktuell( bool aktuell, int dg = 0 );
- void setFullScreenMode( bool enabled ) override;
- void showLoadingOverlay( unsigned char minAlpha ) override;
- void hideLoadingOverlay() override;
- Bild *loadBild( const char *path ) override;
- void filter();
- void doPublicMausEreignis( MausEreignis &me ) override;
- void doTastaturEreignis( TastaturEreignis &te ) override;
- bool tick( double z ) override;
- void render( Bild &zRObj ) override;
-
- bool istAnimiert() const;
- bool istSichtbar() const;
- };
- #endif
|