TitelLeiste.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #ifndef TitelLeiste_H
  2. #define TitelLeiste_H
  3. #include <Klient.h>
  4. #include <Knopf.h>
  5. #include <Fenster.h>
  6. #include <Bild.h>
  7. #include <Thread.h>
  8. using namespace Framework;
  9. class TitelLeiste : private Thread
  10. {
  11. private:
  12. Knopf *close;
  13. Knopf *einstellungen;
  14. Knopf *logout;
  15. Knopf *accountAnsehen;
  16. Knopf *spielen;
  17. Knopf *miniGames;
  18. Knopf *news;
  19. Knopf *shop;
  20. Knopf *editor;
  21. Bild *closeBild;
  22. Bild *einstellungenBild;
  23. Bild *logoutBild;
  24. TextFeld *info;
  25. TextFeld *version;
  26. Fenster *fenster;
  27. Array< int > *next;
  28. Critical cs;
  29. BildZ *goldBild;
  30. BildZ *silberBild;
  31. BildZ *kupferBild;
  32. TextFeld *gold;
  33. TextFeld *silber;
  34. TextFeld *kupfer;
  35. int nextAnzahl;
  36. bool rend;
  37. int ref;
  38. public:
  39. // Konstruktor
  40. TitelLeiste( Fenster *zNachLogin, Schrift *zSchrift );
  41. // Destruktor
  42. ~TitelLeiste();
  43. // nicht constant
  44. void setImSpiel( bool imSpiel ); // aktiviert oder deaktiviert Knöpfe
  45. void setImVideo( bool imVideo ); // aktiviert oder deaktiviert Knöpfe
  46. bool druckSchließen( MausEreignis &me ); // Schließen wurde gedrückt
  47. bool druckEinstellungen( MausEreignis &me ); // Einstellungen wurde gedrückt
  48. bool druckLogout( MausEreignis &me ); // Logout wurde gedrückt
  49. bool druckAccountAnsehen( MausEreignis &me ); // AccountAnsehen wurde gedrückt
  50. bool druckSpielen( MausEreignis &me ); // Spielen wurde gedrückt
  51. bool druckMiniGames( MausEreignis &me ); // MiniGames wurde gedrückt
  52. bool druckNews( MausEreignis &me ); // News wurde gedrückt
  53. bool druckShop( MausEreignis &me ); // Shop wurde gedrückt
  54. bool druckEditor( MausEreignis &me ); // Shop wurde gedrückt
  55. void thread(); // aktualisierungs Thread
  56. bool tick(); // tick
  57. // constant
  58. int getSpielenX() const;
  59. // Reference Counting
  60. TitelLeiste *getThis();
  61. TitelLeiste *release();
  62. };
  63. // Ereignisse
  64. bool titelLeisteSchließenME( void *p, void *obj, MausEreignis me );
  65. bool titelLeisteEinstellungenME( void *p, void *obj, MausEreignis me );
  66. bool titelLeisteLogoutME( void *p, void *obj, MausEreignis me );
  67. bool titelLeisteAccountAnsehenME( void *p, void *obj, MausEreignis me );
  68. bool titelLeisteSpielenME( void *p, void *obj, MausEreignis me );
  69. bool titelLeisteMiniGamesME( void *p, void *obj, MausEreignis me );
  70. bool titelLeisteNewsME( void *p, void *obj, MausEreignis me );
  71. bool titelLeisteShopME( void *p, void *obj, MausEreignis me );
  72. bool titelLeisteEditorME( void *p, void *obj, MausEreignis me );
  73. #endif