KESSVorschau.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. #ifndef KESSVorschau_H
  2. #define KESSVorschau_H
  3. #include <AuswahlBox.h>
  4. #include <KSGScript.h>
  5. #include <Rahmen.h>
  6. #include <Thread.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(
  36. bool hatTV, int tvVerb, bool vvEn, bool tvEn, int vvK, int tvK, int k);
  37. void ladeKarteSeite(const char* pfad);
  38. void ksgsAktion(RCArray<KSGSVariable>* parameter, KSGSVariable** retVal);
  39. void doPublicMausEreignis(MausEreignis& me);
  40. void doTastaturEreignis(TastaturEreignis& te);
  41. bool tick(double zeit);
  42. void render(Bild& zRObj);
  43. };
  44. class KESSVorschauKarte : public virtual ReferenceCounter
  45. {
  46. private:
  47. Knopf* auswählen;
  48. Bild* hintergrund;
  49. AlphaFeld* ausgewählt;
  50. LRahmen* ram;
  51. bool ausw;
  52. bool rend;
  53. public:
  54. // Konstruktor
  55. KESSVorschauKarte();
  56. // Destruktor
  57. ~KESSVorschauKarte();
  58. // nicht constant
  59. void ladeKarte(const char* pfad);
  60. bool doPublicMausEreignis(MausEreignis& me);
  61. bool tick(double zeit);
  62. void render(Bild& zRObj);
  63. };
  64. class KESSVorschau : public Zeichnung
  65. {
  66. private:
  67. TextRenderer* tr;
  68. KESSVorschauKarteScript* script;
  69. KESSVorschauKarte* karte;
  70. Knopf* beenden;
  71. AuswahlBox* besitztTestVersion;
  72. TextFeld* spieleVerbleibend;
  73. AuswahlBox* vvErwerbbar;
  74. AuswahlBox* tvErwerbbar;
  75. TextFeld* vvPreis;
  76. TextFeld* tvPreis;
  77. TextFeld* kupfer;
  78. Text pfad;
  79. TextFeld* log;
  80. unsigned char alpha;
  81. bool sichtbar;
  82. double tickVal;
  83. int aktion;
  84. bool rend;
  85. public:
  86. // Konstruktor
  87. KESSVorschau();
  88. // Destruktor
  89. ~KESSVorschau();
  90. // nicht constant
  91. int getAktion();
  92. void ladeKarte(const char* pfad);
  93. void setSichtbar(bool sicht);
  94. void doPublicMausEreignis(MausEreignis& me);
  95. void doTastaturEreignis(TastaturEreignis& te);
  96. bool tick(double zeit);
  97. void render(Bild& zRObj);
  98. // constant
  99. bool istSichtbar() const;
  100. };
  101. #endif