summaryrefslogtreecommitdiff
path: root/src/net/tmwa/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/tmwa/messageout.h
parentd9c62405db9a3f8bffaa5789bd63f59a65e29e3a (diff)
downloadplus-8d1a43609fcf67bbffb26ab52fdb07f095f602b8.tar.gz
plus-8d1a43609fcf67bbffb26ab52fdb07f095f602b8.tar.bz2
plus-8d1a43609fcf67bbffb26ab52fdb07f095f602b8.tar.xz
plus-8d1a43609fcf67bbffb26ab52fdb07f095f602b8.zip
improve messageout class.
Diffstat (limited to 'src/net/tmwa/messageout.h')
-rw-r--r--src/net/tmwa/messageout.h11
1 files changed, 6 insertions, 5 deletions
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;
};