SSKlient.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #pragma once
  2. #include <Array.h>
  3. #include <Vec2.h>
  4. #include "SSKlientV.h"
  5. class Spieler;
  6. class SpielerStatistik;
  7. class TeamStatistik;
  8. class Klient
  9. {
  10. private:
  11. SSKlientV *klient;
  12. int ref;
  13. public:
  14. // Konstruktor
  15. Klient( SSKlientV *klient );
  16. // Destruktor
  17. ~Klient();
  18. // nicht constant
  19. void offline();
  20. void online( SSKlientV *zKlient );
  21. void sendeInit( RCArray< Spieler > *zSpieler, int spielZeit );
  22. void sendeSpielerNummer( int sNum, int spielZeit );
  23. void sendeStart( int spielZeit );
  24. void sendeTastaturStatus( int spielerId, char taste, bool aktiv, int spielZeit );
  25. void sendeSpielEnde( char gewonnen, int spielZeit );
  26. void sendeChatNachricht( char *txt, int spielZeit );
  27. void sendeStatistikChatNachricht( int vonAccount, char *txt );
  28. void sendeStatistikSpielerOffline( int account );
  29. void sendeSpielerStatistik( SpielerStatistik *zS );
  30. void sendeTeamStatistik( TeamStatistik *zS );
  31. void sendeStatistikLadenFertig();
  32. // constant
  33. bool istOnline() const;
  34. // reference Counting
  35. Klient *getThis();
  36. Klient *release();
  37. };