summaryrefslogtreecommitdiff
path: root/src/net/messagein.h
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-15 11:06:32 -0700
committerIra Rice <irarice@gmail.com>2009-01-15 11:06:32 -0700
commit10a9dbacd9334caede10f1b21d42cdf7e1efcd03 (patch)
treedef2baead68de5a9ccc842e25b3cdcfe9a638c9b /src/net/messagein.h
parente7f4e78f76972ca3882b9d2763ae9cab31675d3a (diff)
downloadmana-client-10a9dbacd9334caede10f1b21d42cdf7e1efcd03.tar.gz
mana-client-10a9dbacd9334caede10f1b21d42cdf7e1efcd03.tar.bz2
mana-client-10a9dbacd9334caede10f1b21d42cdf7e1efcd03.tar.xz
mana-client-10a9dbacd9334caede10f1b21d42cdf7e1efcd03.zip
Style cleanups throughout most of the code. Splitting function type from
the function names should no longer be around. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/net/messagein.h')
-rw-r--r--src/net/messagein.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/net/messagein.h b/src/net/messagein.h
index 81db6cdc..90804497 100644
--- a/src/net/messagein.h
+++ b/src/net/messagein.h
@@ -43,14 +43,12 @@ class MessageIn
/**
* Returns the message ID.
*/
- short
- getId() { return mId; }
+ short getId() { return mId; }
/**
* Returns the message length.
*/
- unsigned int
- getLength() { return mLength; }
+ unsigned int getLength() { return mLength; }
Sint8 readInt8(); /**< Reads a byte. */
Sint16 readInt16(); /**< Reads a short. */
@@ -60,30 +58,26 @@ class MessageIn
* Reads a special 3 byte block used by eAthena, containing x and y
* coordinates and direction.
*/
- void
- readCoordinates(Uint16 &x, Uint16 &y, Uint8 &direction);
+ void readCoordinates(Uint16 &x, Uint16 &y, Uint8 &direction);
/**
* Reads a special 5 byte block used by eAthena, containing a source
* and destination coordinate pair.
*/
- void
- readCoordinatePair(Uint16 &srcX, Uint16 &srcY,
- Uint16 &dstX, Uint16 &dstY);
+ void readCoordinatePair(Uint16 &srcX, Uint16 &srcY,
+ Uint16 &dstX, Uint16 &dstY);
/**
* Skips a given number of bytes.
*/
- void
- skip(unsigned int length);
+ void skip(unsigned int length);
/**
* Reads a string. If a length is not given (-1), it is assumed
* that the length of the string is stored in a short at the
* start of the string.
*/
- std::string
- readString(int length = -1);
+ std::string readString(int length = -1);
private:
const char* mData; /**< The message data. */