diff options
Diffstat (limited to 'src/net/tmwa/messageout.h')
-rw-r--r-- | src/net/tmwa/messageout.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/net/tmwa/messageout.h b/src/net/tmwa/messageout.h index c9d87a1b..24a0a37c 100644 --- a/src/net/tmwa/messageout.h +++ b/src/net/tmwa/messageout.h @@ -24,9 +24,6 @@ #include "net/messageout.h" -#include <iosfwd> -#include <SDL_types.h> - namespace TmwAthena { class Network; @@ -39,19 +36,16 @@ class Network; class MessageOut : public Net::MessageOut { public: - /** - * Constructor. - */ - MessageOut(short id); + MessageOut(uint16_t id); - void writeInt16(Sint16 value); /**< Writes a short. */ - void writeInt32(Sint32 value); /**< Writes a long. */ + void writeInt16(uint16_t value); + void writeInt32(uint32_t value); /** * Encodes coordinates and direction in 3 bytes. */ - void writeCoordinates(unsigned short x, unsigned short y, - unsigned char direction); + void writeCoordinates(uint16_t x, uint16_t y, + uint8_t direction); private: void expand(size_t size); |