equal
deleted
inserted
replaced
29 #include "tcpBase.h" |
29 #include "tcpBase.h" |
30 |
30 |
31 class GameUIConfig; |
31 class GameUIConfig; |
32 class GameCFGWidget; |
32 class GameCFGWidget; |
33 |
33 |
|
34 enum GameState { |
|
35 gsNotStarted = 0, |
|
36 gsStarted = 1, |
|
37 gsFinished = 2 |
|
38 }; |
|
39 |
|
40 |
34 class HWGame : public TCPBase |
41 class HWGame : public TCPBase |
35 { |
42 { |
36 Q_OBJECT |
43 Q_OBJECT |
37 public: |
44 public: |
38 HWGame(GameUIConfig * config, GameCFGWidget * gamecfg); |
45 HWGame(GameUIConfig * config, GameCFGWidget * gamecfg); |
47 virtual void onClientRead(); |
54 virtual void onClientRead(); |
48 virtual void onClientDisconnect(); |
55 virtual void onClientDisconnect(); |
49 |
56 |
50 signals: |
57 signals: |
51 void SendNet(const QByteArray & msg); |
58 void SendNet(const QByteArray & msg); |
|
59 void GameStateChanged(GameState gameState); |
|
60 void GameStats(char type, const QString & info); |
52 |
61 |
53 public slots: |
62 public slots: |
54 void FromNet(const QByteArray & msg); |
63 void FromNet(const QByteArray & msg); |
55 void LocalCFG(const QString & teamname); |
64 void LocalCFG(const QString & teamname); |
56 |
65 |