summaryrefslogtreecommitdiff
path: root/src/net/protocol.h
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2006-09-02 13:03:20 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2006-09-02 13:03:20 +0000
commit3bce14c324e1d7bbd058e18072acc7bd953d6475 (patch)
treee51a4c8fd00bd0be1c63faae4984aaf72a72a6bc /src/net/protocol.h
parent2b322bf18d80acb464a9dc1820e581e7204cca1e (diff)
downloadmana-3bce14c324e1d7bbd058e18072acc7bd953d6475.tar.gz
mana-3bce14c324e1d7bbd058e18072acc7bd953d6475.tar.bz2
mana-3bce14c324e1d7bbd058e18072acc7bd953d6475.tar.xz
mana-3bce14c324e1d7bbd058e18072acc7bd953d6475.zip
Removed pixel-based synchronisation. Added variable length move messages.
Diffstat (limited to 'src/net/protocol.h')
-rw-r--r--src/net/protocol.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/net/protocol.h b/src/net/protocol.h
index f056f003..07b5c926 100644
--- a/src/net/protocol.h
+++ b/src/net/protocol.h
@@ -113,6 +113,7 @@
* - 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
@@ -157,7 +158,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
@@ -238,4 +239,12 @@ enum {
OBJECT_PLAYER
};
+// Moving object flags
+enum {
+ // Payload contains the current position.
+ MOVING_POSITION = 1,
+ // Payload contains the destination.
+ MOVING_DESTINATION = 2
+};
+
#endif