KERelease.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #ifndef KERelease_H
  2. #define KERelease_H
  3. #include <Fenster.h>
  4. #include <Tabelle.h>
  5. #include <Thread.h>
  6. #include <Knopf.h>
  7. #include <Animation.h>
  8. #include <AuswahlBox.h>
  9. using namespace Framework;
  10. class KERelease : private Thread
  11. {
  12. private:
  13. Fenster *fenster;
  14. ObjTabelle *abbilder;
  15. Knopf *veröff;
  16. Knopf *abbildErstellen;
  17. TextFeld *abbildName;
  18. Animation2D *laden;
  19. Schrift *schrift;
  20. TextFeld *shopT;
  21. AuswahlBox *testVersionErwerbbar;
  22. AuswahlBox *vollVersionErwerbbar;
  23. TextFeld *preisT;
  24. TextFeld *testVersionPreisT;
  25. TextFeld *vollVersionPreisT;
  26. TextFeld *testVersionPreis;
  27. TextFeld *vollVersionPreis;
  28. Knopf *shopÜbernehmen;
  29. int aktion;
  30. int zeile;
  31. bool animation;
  32. double tickVal;
  33. bool sichtbar;
  34. bool rechts;
  35. int xStart;
  36. int breite;
  37. int karte;
  38. unsigned char alpha;
  39. int ref;
  40. public:
  41. // Konstruktor
  42. KERelease( int karte, Schrift *zSchrift );
  43. // Destruktor
  44. ~KERelease();
  45. // nicht constant
  46. bool herstellenME( Knopf *obj, MausEreignis &me );
  47. bool removeME( Knopf *obj, MausEreignis &me );
  48. bool veröffentlichenME( MausEreignis &me );
  49. bool abbildErstellenME( MausEreignis &me );
  50. bool shopÜbernehmenME( MausEreignis &me );
  51. void setSichtbar( bool s, bool vr );
  52. void thread() override;
  53. void doMausEreignis( MausEreignis &me );
  54. void doTastaturEreignis( TastaturEreignis &te );
  55. bool tick( double z );
  56. void render( Bild &zRObj );
  57. // constant
  58. bool istSichtbar() const;
  59. // Reference Counting
  60. KERelease *getThis();
  61. KERelease *release();
  62. };
  63. #endif