QTfrontend/game.h
changeset 7628 bc7b1d228a2c
parent 7207 b216efbc00ff
parent 7180 53ffc8853008
child 7665 e556b44f5bd8
equal deleted inserted replaced
7533:7ee319134713 7628:bc7b1d228a2c
    38     gsStopped = 4,
    38     gsStopped = 4,
    39     gsDestroyed = 5,
    39     gsDestroyed = 5,
    40     gsHalted = 6
    40     gsHalted = 6
    41 };
    41 };
    42 
    42 
       
    43 enum RecordType
       
    44 {
       
    45     rtDemo,
       
    46     rtSave,
       
    47     rtNeither,
       
    48 };
       
    49 
    43 bool checkForDir(const QString & dir);
    50 bool checkForDir(const QString & dir);
    44 
    51 
    45 class HWGame : public TCPBase
    52 class HWGame : public TCPBase
    46 {
    53 {
    47         Q_OBJECT
    54         Q_OBJECT
    68         void SendNet(const QByteArray & msg);
    75         void SendNet(const QByteArray & msg);
    69         void SendChat(const QString & msg);
    76         void SendChat(const QString & msg);
    70         void SendTeamMessage(const QString & msg);
    77         void SendTeamMessage(const QString & msg);
    71         void GameStateChanged(GameState gameState);
    78         void GameStateChanged(GameState gameState);
    72         void GameStats(char type, const QString & info);
    79         void GameStats(char type, const QString & info);
    73         void HaveRecord(bool isDemo, const QByteArray & record);
    80         void HaveRecord(RecordType type, const QByteArray & record);
    74         void ErrorMessage(const QString &);
    81         void ErrorMessage(const QString &);
    75         void CampStateChanged(int);
    82         void CampStateChanged(int);
    76 
    83 
    77     public slots:
    84     public slots:
    78         void FromNet(const QByteArray & msg);
    85         void FromNet(const QByteArray & msg);