summaryrefslogtreecommitdiff
path: root/src/net/tmwa/messageout.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2011-06-03 11:19:20 -0600
committerJared Adams <jaxad0127@gmail.com>2011-06-03 12:08:26 -0600
commit3c0cb0e058324ee1d3116017f14387e9a6004442 (patch)
treeb9c00c3fdf1dff7e4c07bf4f8c83c2e7bc03c0f7 /src/net/tmwa/messageout.h
parent894038adf52a3e2b42542239a147d6c1cc1ad204 (diff)
downloadmana-3c0cb0e058324ee1d3116017f14387e9a6004442.tar.gz
mana-3c0cb0e058324ee1d3116017f14387e9a6004442.tar.bz2
mana-3c0cb0e058324ee1d3116017f14387e9a6004442.tar.xz
mana-3c0cb0e058324ee1d3116017f14387e9a6004442.zip
Replace SDL_types.h with cstdint
This required moving to C++0x, so it does that too, and fixes a few errors with that. Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
Diffstat (limited to 'src/net/tmwa/messageout.h')
-rw-r--r--src/net/tmwa/messageout.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/net/tmwa/messageout.h b/src/net/tmwa/messageout.h
index 3a6f34a9..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,16 +36,16 @@ class Network;
class MessageOut : public Net::MessageOut
{
public:
- MessageOut(Uint16 id);
+ MessageOut(uint16_t id);
- void writeInt16(Uint16 value); /**< Writes a short. */
- void writeInt32(Uint32 value); /**< Writes a "long". */
+ void writeInt16(uint16_t value);
+ void writeInt32(uint32_t value);
/**
* Encodes coordinates and direction in 3 bytes.
*/
- void writeCoordinates(Uint16 x, Uint16 y,
- Uint8 direction);
+ void writeCoordinates(uint16_t x, uint16_t y,
+ uint8_t direction);
private:
void expand(size_t size);