diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2006-09-02 13:05:06 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2006-09-02 13:05:06 +0000 |
commit | 0f3f5ed0b20a34dfa787365e224ba3f49bbc9995 (patch) | |
tree | 37ad2a3aebeca57d859cffe0cbb92822a40349c4 /src/defines.h | |
parent | 379c0e936e090a19d295d8514cf94b4fb367eae6 (diff) | |
download | manaserv-0f3f5ed0b20a34dfa787365e224ba3f49bbc9995.tar.gz manaserv-0f3f5ed0b20a34dfa787365e224ba3f49bbc9995.tar.bz2 manaserv-0f3f5ed0b20a34dfa787365e224ba3f49bbc9995.tar.xz manaserv-0f3f5ed0b20a34dfa787365e224ba3f49bbc9995.zip |
Removed pixel-based synchronisation. Added variable length move messages.
Diffstat (limited to 'src/defines.h')
-rw-r--r-- | src/defines.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/defines.h b/src/defines.h index 8f8988d2..335631c3 100644 --- a/src/defines.h +++ b/src/defines.h @@ -109,6 +109,7 @@ const unsigned int MAX_CLIENTS = 1024, * - PGMSG_*: from client to game server * - GPMSG_*: from game server to client * Components: B byte, W word, D double word, S variable-size string + * C tile-based coordinates (B*3) */ enum { // Login/Register @@ -149,7 +150,7 @@ enum { // monster: W type id GPMSG_BEING_LEAVE = 0x0201, // W being id PGMSG_WALK = 0x0260, // W*2 destination - GPMSG_BEINGS_MOVE = 0x0280, // { W being id, W*2 position, W*2 destination }* + GPMSG_BEINGS_MOVE = 0x0280, // { W being id, B flags [, C position] [, W*2 destination] }* PGMSG_SAY = 0x02A0, // S text GPMSG_SAY = 0x02A1, // W being id, S text PGMSG_USE_ITEM = 0x0300, // L item id @@ -242,4 +243,12 @@ enum { OBJECT_PLAYER // A normal being }; +// Moving object flags +enum { + // Payload contains the current position. + MOVING_POSITION = 1, + // Payload contains the destination. + MOVING_DESTINATION = 2 +}; + #endif // _TMWSERV_DEFINES_H_ |