KESSVorschau.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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( 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 : public virtual ReferenceCounter
  44. {
  45. private:
  46. Knopf *auswählen;
  47. Bild *hintergrund;
  48. AlphaFeld *ausgewählt;
  49. LRahmen *ram;
  50. bool ausw;
  51. bool rend;
  52. public:
  53. // Konstruktor
  54. KESSVorschauKarte();
  55. // Destruktor
  56. ~KESSVorschauKarte();
  57. // nicht constant
  58. void ladeKarte( char *pfad );
  59. bool doPublicMausEreignis( MausEreignis &me );
  60. bool tick( double zeit );
  61. void render( Bild &zRObj );
  62. };
  63. class KESSVorschau : public Zeichnung
  64. {
  65. private:
  66. TextRenderer *tr;
  67. KESSVorschauKarteScript *script;
  68. KESSVorschauKarte *karte;
  69. Knopf *beenden;
  70. AuswahlBox *besitztTestVersion;
  71. TextFeld *spieleVerbleibend;
  72. AuswahlBox *vvErwerbbar;
  73. AuswahlBox *tvErwerbbar;
  74. TextFeld *vvPreis;
  75. TextFeld *tvPreis;
  76. TextFeld *kupfer;
  77. Text pfad;
  78. TextFeld *log;
  79. unsigned char alpha;
  80. bool sichtbar;
  81. double tickVal;
  82. int aktion;
  83. bool rend;
  84. public:
  85. // Konstruktor
  86. KESSVorschau();
  87. // Destruktor
  88. ~KESSVorschau();
  89. // nicht constant
  90. int getAktion();
  91. void ladeKarte( char *pfad );
  92. void setSichtbar( bool sicht );
  93. void doPublicMausEreignis( MausEreignis &me );
  94. void doTastaturEreignis( TastaturEreignis &te );
  95. bool tick( double zeit );
  96. void render( Bild &zRObj );
  97. // constant
  98. bool istSichtbar() const;
  99. };
  100. #endif