KESSVorschau.h 2.7 KB

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