summaryrefslogtreecommitdiff
path: root/src/net/eathena/messageout.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-09 01:14:05 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-09 01:14:05 +0300
commit8d1a43609fcf67bbffb26ab52fdb07f095f602b8 (patch)
tree7a9e548023cdf4f705a3a042aefb66d47645f74a /src/net/eathena/messageout.h
parentd9c62405db9a3f8bffaa5789bd63f59a65e29e3a (diff)
downloadmanaplus-8d1a43609fcf67bbffb26ab52fdb07f095f602b8.tar.gz
manaplus-8d1a43609fcf67bbffb26ab52fdb07f095f602b8.tar.bz2
manaplus-8d1a43609fcf67bbffb26ab52fdb07f095f602b8.tar.xz
manaplus-8d1a43609fcf67bbffb26ab52fdb07f095f602b8.zip
improve messageout class.
Diffstat (limited to 'src/net/eathena/messageout.h')
-rw-r--r--src/net/eathena/messageout.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/net/eathena/messageout.h b/src/net/eathena/messageout.h
index 7f8b6cd45..05c82b6f5 100644
--- a/src/net/eathena/messageout.h
+++ b/src/net/eathena/messageout.h
@@ -46,25 +46,26 @@ class MessageOut final : public Net::MessageOut
/**
* Constructor.
*/
- MessageOut(short id);
+ MessageOut(const short id);
A_DELETE_COPY(MessageOut)
- void writeInt16(int16_t value); /**< Writes a short. */
+ void writeInt16(const int16_t value); /**< Writes a short. */
- void writeInt32(int32_t value); /**< Writes a long. */
+ void writeInt32(const int32_t value); /**< Writes a long. */
/**
* Encodes coordinates and direction in 3 bytes.
*/
- void writeCoordinates(unsigned short x, unsigned short y,
+ void writeCoordinates(const unsigned short x,
+ const unsigned short y,
unsigned char direction);
void resetPos()
{ mPos = 0; }
private:
- void expand(size_t size);
+ void expand(const size_t size);
Network *mNetwork;
};