KESSVorschau.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. #ifndef KESSVorschau_H
  2. #define KESSVorschau_H
  3. #include <KSGScript.h>
  4. #include <AuswahlBox.h>
  5. #include <Thread.h>
  6. #include <Rahmen.h>
  7. using namespace Framework;
  8. using namespace KSGScript;
  9. class KESSVorschauKarteScript : public Thread
  10. {
  11. private:
  12. KSGScriptObj *fenster;
  13. Punkt pos;
  14. LRahmen *ram;
  15. HINSTANCE ksgs;
  16. Text pfad;
  17. bool sichtbar;
  18. bool besitztTestVersion;
  19. int verbleibend;
  20. bool vollversionErwerbbar;
  21. bool testversionErwerbbar;
  22. int vvPreis;
  23. int tvPreis;
  24. int kupfer;
  25. unsigned char alpha;
  26. bool aktion;
  27. int ak;
  28. public:
  29. // Konstruktor
  30. KESSVorschauKarteScript( Schrift *zSchrift, TextFeld *zLog );
  31. // Destruktor
  32. ~KESSVorschauKarteScript();
  33. // nicht constant
  34. void thread() override;
  35. void setScriptParams( bool hatTV, int tvVerb, bool vvEn, bool tvEn, int vvK, int tvK, int k );
  36. void ladeKarteSeite( char *pfad );
  37. void ksgsAktion( RCArray< KSGSVariable > *parameter, KSGSVariable **retVal );
  38. void doPublicMausEreignis( MausEreignis &me );
  39. void doTastaturEreignis( TastaturEreignis &te );
  40. bool tick( double zeit );
  41. void render( Bild &zRObj );
  42. };
  43. class KESSVorschauKarte
  44. {
  45. private:
  46. Knopf *auswählen;
  47. Bild *hintergrund;
  48. AlphaFeld *ausgewählt;
  49. LRahmen *ram;
  50. bool ausw;
  51. bool rend;
  52. int ref;
  53. public:
  54. // Konstruktor
  55. KESSVorschauKarte( Schrift *schrift );
  56. // Destruktor
  57. ~KESSVorschauKarte();
  58. // nicht constant
  59. void ladeKarte( char *pfad );
  60. bool doPublicMausEreignis( MausEreignis &me );
  61. bool tick( double zeit );
  62. void render( Bild &zRObj );
  63. // Reference Counting
  64. KESSVorschauKarte *getThis();
  65. KESSVorschauKarte *release();
  66. };
  67. class KESSVorschau : public Zeichnung
  68. {
  69. private:
  70. Schrift *schrift;
  71. TextRenderer *tr;
  72. KESSVorschauKarteScript *script;
  73. KESSVorschauKarte *karte;
  74. Knopf *beenden;
  75. AuswahlBox *besitztTestVersion;
  76. TextFeld *spieleVerbleibend;
  77. AuswahlBox *vvErwerbbar;
  78. AuswahlBox *tvErwerbbar;
  79. TextFeld *vvPreis;
  80. TextFeld *tvPreis;
  81. TextFeld *kupfer;
  82. Text pfad;
  83. TextFeld *log;
  84. unsigned char alpha;
  85. bool sichtbar;
  86. double tickVal;
  87. int aktion;
  88. bool rend;
  89. public:
  90. // Konstruktor
  91. KESSVorschau( Schrift *zSchrift );
  92. // Destruktor
  93. ~KESSVorschau();
  94. // nicht constant
  95. int getAktion();
  96. void ladeKarte( char *pfad );
  97. void setSichtbar( bool sicht );
  98. void doPublicMausEreignis( MausEreignis &me );
  99. void doTastaturEreignis( TastaturEreignis &te );
  100. bool tick( double zeit );
  101. void render( Bild &zRObj );
  102. // constant
  103. bool istSichtbar() const;
  104. };
  105. #endif