diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-10-16 21:18:11 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-10-16 21:18:11 +0000 |
commit | d3175115354bb2417f01877a96d0068e2f2c875d (patch) | |
tree | 3fe6dde2b7922eb12bc376687ae18a59971d908e /src/net/messageout.h | |
parent | 43a80fa64acb7f02cf5305b4a3d2ef6040b4b8c9 (diff) | |
download | mana-d3175115354bb2417f01877a96d0068e2f2c875d.tar.gz mana-d3175115354bb2417f01877a96d0068e2f2c875d.tar.bz2 mana-d3175115354bb2417f01877a96d0068e2f2c875d.tar.xz mana-d3175115354bb2417f01877a96d0068e2f2c875d.zip |
Rename {read,write}{Byte,Short,Long} to {read,write}Int{8,16,32}.
Diffstat (limited to 'src/net/messageout.h')
-rw-r--r-- | src/net/messageout.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/net/messageout.h b/src/net/messageout.h index 04a5ba91..b2ee506e 100644 --- a/src/net/messageout.h +++ b/src/net/messageout.h @@ -25,6 +25,7 @@ #define _TMW_MESSAGEOUT_ #include <iosfwd> +#include <SDL_types.h> class Packet; @@ -33,9 +34,9 @@ class Packet; */ class MessageOut { - friend MessageOut& operator<<(MessageOut &msg, const char &rhs); - friend MessageOut& operator<<(MessageOut &msg, const short &rhs); - friend MessageOut& operator<<(MessageOut &msg, const long &rhs); + friend MessageOut& operator<<(MessageOut &msg, const Sint8 &rhs); + friend MessageOut& operator<<(MessageOut &msg, const Sint16 &rhs); + friend MessageOut& operator<<(MessageOut &msg, const Sint32 &rhs); public: /** @@ -48,9 +49,9 @@ class MessageOut */ ~MessageOut(); - void writeByte(char value); /**< Writes a byte. */ - void writeShort(short value); /**< Writes a short. */ - void writeLong(int value); /**< Writes a long. */ + void writeInt8(Sint8 value); /**< Writes a byte. */ + void writeInt16(Sint16 value); /**< Writes a short. */ + void writeInt32(Sint32 value); /**< Writes a long. */ /** * Writes a string. If a fixed length is not given (-1), it is stored |