From 8d1a43609fcf67bbffb26ab52fdb07f095f602b8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 9 Apr 2013 01:14:05 +0300 Subject: improve messageout class. --- src/net/tmwa/messageout.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/net/tmwa/messageout.h') diff --git a/src/net/tmwa/messageout.h b/src/net/tmwa/messageout.h index 370651659..285e333d0 100644 --- a/src/net/tmwa/messageout.h +++ b/src/net/tmwa/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; }; -- cgit v1.2.3-60-g2f50