src/Network/Protocol.hh
changeset 223 2fcaf54ed37b
parent 203 3ec7ab40755f
child 224 e6faefba2ec1
--- a/src/Network/Protocol.hh	Sat Dec 06 17:51:19 2008 +0000
+++ b/src/Network/Protocol.hh	Sat Dec 06 18:49:51 2008 +0000
@@ -27,41 +27,41 @@
 };
 
 enum NetworkMessage {
-    NETMSG_PACKET_INVALID   = 0x0000,
+    NETMSG_PACKET_INVALID       = 0x0000,
 
     /*
      * You have joined the game:
      *
      *  Vector      initial_position
      */
-    NETMSG_SERVER_HELLO     = 0x0100,
+    NETMSG_SERVER_HELLO         = 0x0100,
 
     /*
      * New client has connected to server:
      *  
      *  Vector      initial_position
      */
-    NETMSG_PLAYER_JOIN      = 0x0101,
+    NETMSG_PLAYER_JOIN          = 0x0101,
 
     /*
      * Client has left server:
      *
      */
-    NETMSG_PLAYER_QUIT      = 0x0102,
+    NETMSG_PLAYER_QUIT          = 0x0102,
 
     /*
-     * Client has moved
+     * Client has input to process
      *
-     *  uint16_t    PlayerInput_Move
+     *  uint16_t    PlayerInput
      */
-    NETMSG_CLIENT_MOVE      = 0x0201,
+    NETMSG_CLIENT_INPUT         = 0x0201,
     
     /*
      * Initial player info
      *
      *  Vector      initial_position
      */
-    NETMSG_PLAYER_INFO      = 0x0300,
+    NETMSG_PLAYER_INFO          = 0x0300,
 
     /*
      * Player position update
@@ -71,7 +71,7 @@
      * uint8_t  NetworkPhysicsFlags
      * float32  aim
      */
-    NETMSG_PLAYER_POSITION  = 0x0301,
+    NETMSG_PLAYER_POSITION      = 0x0301,
 
     /*
      * Terrain update, removeGround
@@ -79,7 +79,16 @@
      * Vector   position 
      * float32  radius          
      */
-    NETMSG_PLAYER_DIG       = 0x0302,
+    NETMSG_PLAYER_DIG           = 0x0302,
+
+    /*
+     * New projectile spawned
+     *
+     * Vector   position
+     * Vector   velocity
+     * float    explosionRadius
+     */
+    NETMSG_PROJECTILE_CREATE    = 0x0401,
 };
 
 #endif