equal
deleted
inserted
replaced
68 bool netSuspend; |
68 bool netSuspend; |
69 |
69 |
70 protected: |
70 protected: |
71 virtual QStringList getArguments(); |
71 virtual QStringList getArguments(); |
72 virtual void onClientRead(); |
72 virtual void onClientRead(); |
73 virtual void onClientDisconnect(); |
|
74 void onEngineStart(); |
73 void onEngineStart(); |
75 |
74 |
76 signals: |
75 signals: |
77 void SendNet(const QByteArray & msg); |
76 void SendNet(const QByteArray & msg); |
78 void SendChat(const QString & msg); |
77 void SendChat(const QString & msg); |
79 void SendTeamMessage(const QString & msg); |
78 void SendTeamMessage(const QString & msg); |
80 void GameStateChanged(GameState gameState); |
79 void GameStateChanged(GameState gameState); |
81 void GameStats(char type, const QString & info); |
80 void GameStats(char type, const QString & info); |
82 void HaveRecord(RecordType type, const QByteArray & record); |
81 void HaveRecord(RecordType type, const QByteArray & record); |
83 void ErrorMessage(const QString &); |
82 void ErrorMessage(const QString &); |
84 void CampStateChanged(int); |
83 void campStateChanged(int); |
85 |
84 |
86 public slots: |
85 public slots: |
87 void FromNet(const QByteArray & msg); |
86 void FromNet(const QByteArray & msg); |
88 void FromNetChat(const QString & msg); |
87 void FromNetChat(const QString & msg); |
89 |
88 |
113 void SendTrainingConfig(); |
112 void SendTrainingConfig(); |
114 void SendCampaignConfig(); |
113 void SendCampaignConfig(); |
115 void SetGameState(GameState state); |
114 void SetGameState(GameState state); |
116 void sendCampaignVar(const QByteArray & varToSend); |
115 void sendCampaignVar(const QByteArray & varToSend); |
117 void writeCampaignVar(const QByteArray &varVal); |
116 void writeCampaignVar(const QByteArray &varVal); |
|
117 |
|
118 static void onChat(void* context, const char *msg, bool teamchat); |
|
119 static void onConnect(void* context); |
|
120 static void onDisconnect(void* context, int reason); |
|
121 static void onEngineMessage(void *context, const uint8_t *em, size_t size); |
|
122 static void onErrorMessage(void* context, const char *msg); |
|
123 static void onGameRecorded(void *context, const uint8_t *record, size_t size, bool isSavegame); |
118 }; |
124 }; |
119 |
125 |
120 #endif |
126 #endif |