KETeams.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #pragma once
  2. #include "../../../../Strukturen/Strukturen.h"
  3. #include <Fenster.h>
  4. #include <Thread.h>
  5. #include <Animation.h>
  6. #include <Liste.h>
  7. #include <Knopf.h>
  8. using namespace Framework;
  9. class KETeams : private Thread
  10. {
  11. private:
  12. Fenster *fenster;
  13. Animation2D *laden;
  14. Schrift *schrift;
  15. AuswahlListe *teams;
  16. TextFeld *tName;
  17. TextFeld *tFarbe;
  18. ZeichnungHintergrund *tFarbeV;
  19. Knopf *tNeu;
  20. Knopf *tLöschen;
  21. AuswahlListe *spieler;
  22. TextFeld *sFarbe;
  23. ZeichnungHintergrund *sFarbeV;
  24. Knopf *sNeu;
  25. Knopf *sLöschen;
  26. Knopf *abbrechen;
  27. Knopf *speichern;
  28. SpielerTeamStruktur *sts;
  29. int aktion;
  30. bool animation;
  31. double tickVal;
  32. bool sichtbar;
  33. bool rechts;
  34. int xStart;
  35. int breite;
  36. int karte;
  37. unsigned char alpha;
  38. int ref;
  39. // privat
  40. void updateGUI();
  41. public:
  42. // Konstruktor
  43. KETeams( int karte, Schrift *zSchrift );
  44. // Destruktor
  45. ~KETeams();
  46. // nicht constant
  47. void nachME( void *obj, MausEreignis &me );
  48. void nachTE( void *obj, TastaturEreignis &te );
  49. void setSichtbar( bool s, bool vr );
  50. void thread() override;
  51. void doMausEreignis( MausEreignis &me );
  52. void doTastaturEreignis( TastaturEreignis &te );
  53. bool tick( double z );
  54. void render( Bild &zRObj );
  55. // constant
  56. bool istSichtbar() const;
  57. // Reference Counting
  58. KETeams *getThis();
  59. KETeams *release();
  60. };