equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Hedgewars, a free turn based strategy game |
2 * Hedgewars, a free turn based strategy game |
3 * Copyright (c) 2004-2012 Andrey Korotaev <unC0Rr@gmail.com> |
3 * Copyright (c) 2004-2013 Andrey Korotaev <unC0Rr@gmail.com> |
4 * |
4 * |
5 * This program is free software; you can redistribute it and/or modify |
5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License as published by |
6 * it under the terms of the GNU General Public License as published by |
7 * the Free Software Foundation; version 2 of the License |
7 * the Free Software Foundation; version 2 of the License |
8 * |
8 * |
33 static QByteArray & addStringToBuffer(QByteArray & buf, const QString & string); |
33 static QByteArray & addStringToBuffer(QByteArray & buf, const QString & string); |
34 static QByteArray & addByteArrayToBuffer(QByteArray & buf, const QByteArray & msg); |
34 static QByteArray & addByteArrayToBuffer(QByteArray & buf, const QByteArray & msg); |
35 static QByteArray & addStringListToBuffer(QByteArray & buf, const QStringList & strList); |
35 static QByteArray & addStringListToBuffer(QByteArray & buf, const QStringList & strList); |
36 static QString formatChatMsg(const QString & nick, const QString & msg); |
36 static QString formatChatMsg(const QString & nick, const QString & msg); |
37 static QString formatChatMsgForFrontend(const QString & msg); |
37 static QString formatChatMsgForFrontend(const QString & msg); |
|
38 /** |
|
39 * @brief Determines if a chat string represents a chat action and returns the action. |
|
40 * @param string chat string |
|
41 * @return the action-message or NULL if message is no action |
|
42 */ |
|
43 static QString chatStringToAction(const QString & string); |
38 }; |
44 }; |
39 |
45 |
40 #endif // _PROTO_H |
46 #endif // _PROTO_H |