123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- #ifndef SpielAuswahl_H
- #define SpielAuswahl_H
- #include <Klient.h>
- #include <Bild.h>
- #include <Thread.h>
- #include <TextFeld.h>
- #include <Animation.h>
- #include <KSGScript.h>
- #include <Rahmen.h>
- using namespace Framework;
- using namespace KSGScript;
- class SpielDaten;
- class SpielDaten : public virtual ReferenceCounter
- {
- private:
- class Loader : public Thread
- {
- private:
- SpielDaten *sd;
- bool beenden;
- int aktion;
- public:
- Loader( SpielDaten *sd, int aktion );
- void setBeenden();
- void thread() override;
- int getAktion() const;
- };
- Loader *loader;
- int spielId;
- Text *name;
- Bild *hintergrund;
- Animation2D *aAnimation;
- TextRenderer *tr;
- KSGScriptObj *beschreibung;
- HINSTANCE ksgs;
- LRahmen *rahmen;
- double tickVal;
- int animation;
- bool ausgewählt;
- Punkt pos;
- Punkt gr;
- int geladen;
- AlphaFeld *auswahl;
- int ladenBild;
- bool rend;
- bool erlaubt;
- unsigned char tAlpha;
- unsigned char alpha;
- public:
-
- SpielDaten( const char *name, int id );
-
- ~SpielDaten();
-
- void ksgsAktion( RCArray< KSGSVariable > *parameter, KSGSVariable **retVal );
- void updateErlaubt();
- void setSichtbar( bool sichtbar );
- void setSichtbar();
- void setAuswahl( bool auswahl );
- void setPosition( int lPos );
- bool tick( double tickVal );
- void doPublicMausEreignis( MausEreignis &me );
- void render( Bild &zRObj );
-
- int getSpielId() const;
- bool istausgewählt() const;
- Text *zName() const;
- bool istErlaubt() const;
- };
- class SpielAuswahlFenster : public Thread
- {
- private:
- int anzahl;
- int auswahl;
- RCArray< SpielDaten > *members;
- LRahmen *rahmen;
- TextRenderer *tr;
- double tickVal;
- int animation;
- Punkt pos;
- Punkt gr;
- int seite;
- bool rend;
- unsigned char alpha;
- public:
-
- SpielAuswahlFenster();
-
- ~SpielAuswahlFenster();
-
- void setSichtbar( bool sichtbar );
- void blättern( bool oben );
- void updateListe();
- virtual void thread();
- bool tick( double tickVal );
- void doPublicMausEreignis( MausEreignis &me );
- void render( Bild &zrObj );
-
- int getAnzahl() const;
- int getSeiteAnzahl() const;
- int getSeite() const;
- int getAnzahlAufSeite() const;
- bool hatAuswahl() const;
- SpielDaten *getAuswahl() const;
- SpielDaten *zAuswahl() const;
- bool istAuswahlErlubt() const;
- };
- #endif
|