KEShopSeite.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef KEShopSeite_H
  2. #define KEShopSeite_H
  3. #include <Fenster.h>
  4. #include <Thread.h>
  5. #include <Animation.h>
  6. #include "KESSEditor.h"
  7. #include "KESSVorschau.h"
  8. using namespace Framework;
  9. class KEShopSeite : private Thread
  10. {
  11. private:
  12. Fenster *fenster;
  13. Animation2D *laden;
  14. Schrift *schrift;
  15. KESSEditor *editor;
  16. KESSVorschau *vorschau;
  17. int aktion;
  18. int zeile;
  19. bool animation;
  20. double tickVal;
  21. bool sichtbar;
  22. bool rechts;
  23. int xStart;
  24. int breite;
  25. int karte;
  26. unsigned char alpha;
  27. int ref;
  28. public:
  29. // Konstruktor
  30. KEShopSeite( int karte, Schrift *zSchrift );
  31. // Destruktor
  32. ~KEShopSeite();
  33. // nicht constant
  34. void setSichtbar( bool s, bool vr );
  35. void thread() override;
  36. void doMausEreignis( MausEreignis &me );
  37. void doTastaturEreignis( TastaturEreignis &te );
  38. bool tick( double z );
  39. void render( Bild &zRObj );
  40. // constant
  41. bool istSichtbar() const;
  42. // Reference Counting
  43. KEShopSeite *getThis();
  44. KEShopSeite *release();
  45. };
  46. #endif