KartenKaufen.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. #ifndef KartenKaufen_H
  2. #define KartenKaufen_H
  3. #include <Schrift.h>
  4. #include <Knopf.h>
  5. #include <KSGScript.h>
  6. #include <Array.h>
  7. #include <Scroll.h>
  8. #include <Animation.h>
  9. #include <Thread.h>
  10. #include <AuswahlBox.h>
  11. #include <Rahmen.h>
  12. using namespace Framework;
  13. using namespace KSGScript;
  14. class KartenKaufenAuswahl : public Thread
  15. {
  16. private:
  17. int karteId;
  18. unsigned char alpha;
  19. KSGScriptObj *fenster;
  20. Framework::Animation2D *laden;
  21. Punkt pos;
  22. LRahmen *ram;
  23. HINSTANCE ksgs;
  24. bool aktion;
  25. public:
  26. // Konstruktor
  27. KartenKaufenAuswahl();
  28. // Destruktor
  29. ~KartenKaufenAuswahl();
  30. // nicht constant
  31. void ladeKarteSeite( int id );
  32. void reset();
  33. virtual void thread();
  34. void ksgsAktion( RCArray< KSGSVariable > *parameter, KSGSVariable **retVal );
  35. void doPublicMausEreignis( MausEreignis &me );
  36. void doTastaturEreignis( TastaturEreignis &te );
  37. bool tick( double zeit );
  38. void render( Bild &zRObj );
  39. };
  40. class KartenKaufenListeEintrag : public virtual ReferenceCounter
  41. {
  42. private:
  43. int karteId;
  44. Knopf *auswählen;
  45. Bild *hintergrund;
  46. AlphaFeld *ausgewählt;
  47. LRahmen *ram;
  48. bool ausw;
  49. bool rend;
  50. public:
  51. // Konstruktor
  52. KartenKaufenListeEintrag( int id );
  53. // Destruktor
  54. ~KartenKaufenListeEintrag();
  55. // nicht constant
  56. void resetAuswahl();
  57. bool doPublicMausEreignis( MausEreignis &me );
  58. bool tick( double zeit );
  59. void render( int yOff, Bild &zRObj );
  60. // constant
  61. int getKarteId() const;
  62. };
  63. class KartenKaufenListe : public virtual ReferenceCounter
  64. {
  65. private:
  66. LRahmen *ram;
  67. Punkt pos;
  68. RCArray< KartenKaufenListeEintrag > *einträge;
  69. VScrollBar *vScroll;
  70. bool rend;
  71. Critical cs;
  72. public:
  73. // Konstruktor
  74. KartenKaufenListe();
  75. // Destruktor
  76. ~KartenKaufenListe();
  77. // nicht constant
  78. void ladeKarten( Array< int > *karten );
  79. void leeren();
  80. int doPublicMausEreignis( MausEreignis &me );
  81. bool tick( double zeit );
  82. void render( Bild &zRObj );
  83. // constant
  84. int getEintragAnzahl();
  85. };
  86. class KartenKaufen : public Thread
  87. {
  88. private:
  89. unsigned char alpha;
  90. bool sichtbar;
  91. Text *suchText;
  92. LRahmen *ram;
  93. AuswahlBox *spielArt;
  94. TextFeld *suchFilterT;
  95. TextFeld *suchFilter;
  96. Knopf *suchen;
  97. TextFeld *seiten;
  98. Knopf *weiter;
  99. Knopf *zurück;
  100. Punkt pos;
  101. KartenKaufenListe *liste;
  102. KartenKaufenAuswahl *auswahl;
  103. Framework::Animation2D *laden;
  104. double tickVal;
  105. int seite;
  106. int maxSeite;
  107. int aktion;
  108. bool rend;
  109. public:
  110. // Konstruktor
  111. KartenKaufen();
  112. // Destruktor
  113. ~KartenKaufen();
  114. // nicht constant
  115. void setSichtbar( bool sicht );
  116. virtual void thread();
  117. void doPublicMausEreignis( MausEreignis &me );
  118. void doTastaturEreignis( TastaturEreignis &te );
  119. bool tick( double zeit );
  120. void render( Bild &zRObj );
  121. // constant
  122. bool istSichtbar() const;
  123. };
  124. #endif