summaryrefslogtreecommitdiff
path: root/src/net/tmwa/messageout.h
diff options
context:
space:
mode:
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;
};