SSKlient.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 sendeTick();
  27. void sendeChatNachricht( char *txt, int spielZeit );
  28. void sendeStatistikChatNachricht( int vonAccount, char *txt );
  29. void sendeStatistikSpielerOffline( int account );
  30. void sendeSpielerStatistik( SpielerStatistik *zS );
  31. void sendeTeamStatistik( TeamStatistik *zS );
  32. void sendeStatistikLadenFertig();
  33. // constant
  34. bool istOnline() const;
  35. // reference Counting
  36. Klient *getThis();
  37. Klient *release();
  38. };