AccountAnsehen.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #ifndef AccountAnsehen_H
  2. #define AccountAnsehen_H
  3. #include <Klient.h>
  4. #include <Fenster.h>
  5. #include <Animation.h>
  6. #include <Knopf.h>
  7. #include "Aktivität/AccountAktivität.h"
  8. #include "Historie/AccountHistorie.h"
  9. #include "Spiele_Karten/AccountSpieleUndKarten.h"
  10. #include "SpielPartner/AccountSpielPartner.h"
  11. #include "Statistik/AccountStatistik.h"
  12. #include "Suchen/AccountSuchen.h"
  13. using namespace Framework;
  14. class AccountAnsehen : public Zeichnung
  15. {
  16. private:
  17. Animation2D *laden;
  18. Punkt begPos;
  19. Punkt begGröße;
  20. Punkt pos1;
  21. Punkt größe1;
  22. Punkt pos2;
  23. Punkt größe2;
  24. Punkt bildschirmGröße;
  25. LRahmen *rahmen;
  26. Knopf *aktivitätK;
  27. Knopf *historieK;
  28. Knopf *spieleUndKartenK;
  29. Knopf *spielPartnerK;
  30. Knopf *statistikK;
  31. Knopf *suchenK;
  32. AccountSuchen *suche;
  33. AccountAktivität *aktivität;
  34. AccountSpieleUndKarten *spieleUndKarten;
  35. AccountSpielPartner *partner;
  36. AccountStatistik *statistik;
  37. AccountHistorie *historie;
  38. int account;
  39. int alpha;
  40. int alpha2;
  41. bool sichtbar;
  42. int jetzt;
  43. int nachher;
  44. int prozent1;
  45. int prozent2;
  46. double tickVal;
  47. int animation;
  48. int knopfX;
  49. bool rend;
  50. int ref;
  51. public:
  52. // Konstruktor
  53. AccountAnsehen( Schrift *zSchrift, Fenster *zNachLoginFenster, int x );
  54. // Destruktor
  55. ~AccountAnsehen();
  56. // nicht constant
  57. void setSichtbar( bool sicht );
  58. bool setSpielerDetails( int account, int nachher );
  59. bool tick( double tickVal ) override;
  60. void doMausEreignis( MausEreignis &me ) override;
  61. void doTastaturEreignis( TastaturEreignis &te ) override;
  62. void render( Bild &zRObj ) override;
  63. // constant
  64. bool istAnimiert() const;
  65. bool istSichtbar() const;
  66. // Reference Counting
  67. AccountAnsehen *getThis();
  68. AccountAnsehen *release();
  69. };
  70. #endif