Chat.h 742 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef Chat_H
  2. #define Chat_H
  3. #include <KSGNetwork.h>
  4. #include <TextFeld.h>
  5. #include <Rahmen.h>
  6. using namespace Framework;
  7. class SpielChat
  8. {
  9. private:
  10. LRahmen *rahmen = 0;
  11. TextFeld *verlauf;
  12. TextFeld *nachricht;
  13. int ref;
  14. public:
  15. // Konstruktor
  16. SpielChat();
  17. // Destruktor
  18. ~SpielChat();
  19. // nicht constant
  20. void setSchrift( Schrift *zSchrift );
  21. void addNachricht( char *nachricht );
  22. void addNachricht( char *nachricht, int farbe );
  23. void doMausEreignis( MausEreignis &me );
  24. void doTastaturEreignis( TastaturEreignis &te, KSGClient::SpielServerClient *zKlient );
  25. void tick( double z );
  26. void render( Bild &zRObj );
  27. // constant
  28. bool istAktiv() const;
  29. // Reference Counting
  30. SpielChat *getThis();
  31. SpielChat *relese();
  32. };
  33. #endif