KESSVorschau.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. int ref;
  29. public:
  30. // Konstruktor
  31. KESSVorschauKarteScript( Schrift *zSchrift, TextFeld *zLog );
  32. // Destruktor
  33. ~KESSVorschauKarteScript();
  34. // nicht constant
  35. void thread() override;
  36. void setScriptParams( bool hatTV, int tvVerb, bool vvEn, bool tvEn, int vvK, int tvK, int k );
  37. void ladeKarteSeite( char *pfad );
  38. void ksgsAktion( RCArray< KSGSVariable > *parameter, KSGSVariable **retVal );
  39. void doMausEreignis( MausEreignis &me );
  40. void doTastaturEreignis( TastaturEreignis &te );
  41. bool tick( double zeit );
  42. void render( Bild &zRObj );
  43. // Reference Counting
  44. KESSVorschauKarteScript *getThis();
  45. KESSVorschauKarteScript *release();
  46. };
  47. class KESSVorschauKarte
  48. {
  49. private:
  50. Knopf *auswählen;
  51. Bild *hintergrund;
  52. AlphaFeld *ausgewählt;
  53. LRahmen *ram;
  54. bool ausw;
  55. bool rend;
  56. int ref;
  57. public:
  58. // Konstruktor
  59. KESSVorschauKarte( Schrift *schrift );
  60. // Destruktor
  61. ~KESSVorschauKarte();
  62. // nicht constant
  63. void ladeKarte( char *pfad );
  64. bool doMausEreignis( MausEreignis &me );
  65. bool tick( double zeit );
  66. void render( Bild &zRObj );
  67. // Reference Counting
  68. KESSVorschauKarte *getThis();
  69. KESSVorschauKarte *release();
  70. };
  71. class KESSVorschau : public Zeichnung
  72. {
  73. private:
  74. Schrift *schrift;
  75. KESSVorschauKarteScript *script;
  76. KESSVorschauKarte *karte;
  77. Knopf *beenden;
  78. AuswahlBox *besitztTestVersion;
  79. TextFeld *spieleVerbleibend;
  80. AuswahlBox *vvErwerbbar;
  81. AuswahlBox *tvErwerbbar;
  82. TextFeld *vvPreis;
  83. TextFeld *tvPreis;
  84. TextFeld *kupfer;
  85. Text pfad;
  86. TextFeld *log;
  87. unsigned char alpha;
  88. bool sichtbar;
  89. double tickVal;
  90. int aktion;
  91. bool rend;
  92. int ref;
  93. public:
  94. // Konstruktor
  95. KESSVorschau( Schrift *zSchrift );
  96. // Destruktor
  97. ~KESSVorschau();
  98. // nicht constant
  99. int getAktion();
  100. void ladeKarte( char *pfad );
  101. void setSichtbar( bool sicht );
  102. void doMausEreignis( MausEreignis &me );
  103. void doTastaturEreignis( TastaturEreignis &te );
  104. bool tick( double zeit );
  105. void render( Bild &zRObj );
  106. // constant
  107. bool istSichtbar() const;
  108. // Reference Counting
  109. KESSVorschau *getThis();
  110. KESSVorschau *release();
  111. };
  112. #endif