1 /* |
1 /* |
2 * Hedgewars, a free turn based strategy game |
2 * Hedgewars, a free turn based strategy game |
3 * Copyright (c) 2006-2008 Igor Ulyanov <iulyanov@gmail.com> |
3 * Copyright (c) 2006-2008 Igor Ulyanov <iulyanov@gmail.com> |
4 * Copyright (c) 2004-2012 Andrey Korotaev <unC0Rr@gmail.com> |
4 * Copyright (c) 2004-2013 Andrey Korotaev <unC0Rr@gmail.com> |
5 * |
5 * |
6 * This program is free software; you can redistribute it and/or modify |
6 * This program is free software; you can redistribute it and/or modify |
7 * it under the terms of the GNU General Public License as published by |
7 * it under the terms of the GNU General Public License as published by |
8 * the Free Software Foundation; version 2 of the License |
8 * the Free Software Foundation; version 2 of the License |
9 * |
9 * |
97 void NickNotRegistered(const QString & nick); |
97 void NickNotRegistered(const QString & nick); |
98 void NickTaken(const QString & nick); |
98 void NickTaken(const QString & nick); |
99 void AuthFailed(); |
99 void AuthFailed(); |
100 void EnteredGame(); |
100 void EnteredGame(); |
101 void LeftRoom(const QString & reason); |
101 void LeftRoom(const QString & reason); |
102 void nickAdded(const QString& nick, bool notifyNick); |
|
103 void nickRemoved(const QString& nick); |
|
104 void nickAddedLobby(const QString& nick, bool notifyNick); |
|
105 void nickRemovedLobby(const QString& nick); |
|
106 void FromNet(const QByteArray & buf); |
102 void FromNet(const QByteArray & buf); |
107 void adminAccess(bool); |
103 void adminAccess(bool); |
108 void roomMaster(bool); |
104 void roomMaster(bool); |
109 void roomNameUpdated(const QString & name); |
105 void roomNameUpdated(const QString & name); |
110 |
106 |
115 void TeamAccepted(const QString&); |
111 void TeamAccepted(const QString&); |
116 void AddNetTeam(const HWTeam&); |
112 void AddNetTeam(const HWTeam&); |
117 void RemoveNetTeam(const HWTeam&); |
113 void RemoveNetTeam(const HWTeam&); |
118 void hhnumChanged(const HWTeam&); |
114 void hhnumChanged(const HWTeam&); |
119 void teamColorChanged(const HWTeam&); |
115 void teamColorChanged(const HWTeam&); |
120 void chatStringLobby(const QString&); |
116 void playerInfo( |
121 void chatStringLobby(const QString&, const QString&); |
117 const QString & nick, |
|
118 const QString & ip, |
|
119 const QString & version, |
|
120 const QString & roomInfo); |
|
121 void lobbyChatMessage(const QString & nick, const QString & message); |
|
122 void lobbyChatAction(const QString & nick, const QString & action); |
|
123 void roomChatMessage(const QString & nick, const QString & message); |
|
124 void roomChatAction(const QString & nick, const QString & action); |
122 void chatStringFromNet(const QString&); |
125 void chatStringFromNet(const QString&); |
123 void chatStringFromMe(const QString&); |
|
124 void chatStringFromMeLobby(const QString&); |
|
125 |
126 |
126 void roomsList(const QStringList&); |
127 void roomsList(const QStringList&); |
127 void serverMessage(const QString &); |
128 void serverMessage(const QString &); |
128 void serverMessageNew(const QString &); |
129 void serverMessageNew(const QString &); |
129 void serverMessageOld(const QString &); |
130 void serverMessageOld(const QString &); |
135 void messageProcessed(); |
136 void messageProcessed(); |
136 |
137 |
137 public slots: |
138 public slots: |
138 void ToggleReady(); |
139 void ToggleReady(); |
139 void chatLineToNet(const QString& str); |
140 void chatLineToNet(const QString& str); |
|
141 void chatLineToNetWithEcho(const QString&); |
140 void chatLineToLobby(const QString& str); |
142 void chatLineToLobby(const QString& str); |
141 void SendTeamMessage(const QString& str); |
143 void SendTeamMessage(const QString& str); |
142 void SendNet(const QByteArray & buf); |
144 void SendNet(const QByteArray & buf); |
143 void AddTeam(const HWTeam & team); |
145 void AddTeam(const HWTeam & team); |
144 void RemoveTeam(const HWTeam& team); |
146 void RemoveTeam(const HWTeam& team); |