src/Network/Protocol.hh
author Tero Marttila <terom@fixme.fi>
Fri, 16 Jan 2009 22:03:49 +0200
changeset 400 d64bf28c4340
parent 334 0cf3f2be51eb
child 431 c6d7272a164b
permissions -rw-r--r--
more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
187
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
     1
#ifndef NETWORK_PROTOCOL_HH
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
     2
#define NETWORK_PROTOCOL_HH
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
     3
400
d64bf28c4340 more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents: 334
diff changeset
     4
/**
d64bf28c4340 more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents: 334
diff changeset
     5
 * @file
d64bf28c4340 more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents: 334
diff changeset
     6
 *
d64bf28c4340 more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents: 334
diff changeset
     7
 * Definitions for game network protocol
187
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
     8
 */
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
     9
400
d64bf28c4340 more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents: 334
diff changeset
    10
/**
d64bf28c4340 more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents: 334
diff changeset
    11
 * The various NetworkChannelIDs used with our NetworkSession
d64bf28c4340 more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents: 334
diff changeset
    12
 */
187
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    13
enum NetworkChannel {
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    14
    /*
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    15
     * Core channel used for NetworkSession
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    16
     */
203
3ec7ab40755f send initial terrain data to clients using a new NETCHAN_TERRAIN_ARRAY channel using raw BigNetworkPacket
terom
parents: 200
diff changeset
    17
    NETCHAN_CORE            = 0x0001,
3ec7ab40755f send initial terrain data to clients using a new NETCHAN_TERRAIN_ARRAY channel using raw BigNetworkPacket
terom
parents: 200
diff changeset
    18
3ec7ab40755f send initial terrain data to clients using a new NETCHAN_TERRAIN_ARRAY channel using raw BigNetworkPacket
terom
parents: 200
diff changeset
    19
    /*
3ec7ab40755f send initial terrain data to clients using a new NETCHAN_TERRAIN_ARRAY channel using raw BigNetworkPacket
terom
parents: 200
diff changeset
    20
     * Channel used to send initial terrain array
3ec7ab40755f send initial terrain data to clients using a new NETCHAN_TERRAIN_ARRAY channel using raw BigNetworkPacket
terom
parents: 200
diff changeset
    21
     *
3ec7ab40755f send initial terrain data to clients using a new NETCHAN_TERRAIN_ARRAY channel using raw BigNetworkPacket
terom
parents: 200
diff changeset
    22
     * uint32_t                 map_w
3ec7ab40755f send initial terrain data to clients using a new NETCHAN_TERRAIN_ARRAY channel using raw BigNetworkPacket
terom
parents: 200
diff changeset
    23
     * uint32_t                 map_h
3ec7ab40755f send initial terrain data to clients using a new NETCHAN_TERRAIN_ARRAY channel using raw BigNetworkPacket
terom
parents: 200
diff changeset
    24
     * uint8_t[map_w][map_h]    terrain
3ec7ab40755f send initial terrain data to clients using a new NETCHAN_TERRAIN_ARRAY channel using raw BigNetworkPacket
terom
parents: 200
diff changeset
    25
     */
3ec7ab40755f send initial terrain data to clients using a new NETCHAN_TERRAIN_ARRAY channel using raw BigNetworkPacket
terom
parents: 200
diff changeset
    26
    NETCHAN_TERRAIN_ARRAY   = 0x0010,
187
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    27
};
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    28
400
d64bf28c4340 more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents: 334
diff changeset
    29
/**
d64bf28c4340 more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents: 334
diff changeset
    30
 * Various flags used with NETMSG_PLAYER_POSITION related to PhysicsObject state
d64bf28c4340 more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents: 334
diff changeset
    31
 */
187
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    32
enum NetworkPhysicsFlags {
224
e6faefba2ec1 fixed logger, and network projectiles should work reasonably well now
terom
parents: 223
diff changeset
    33
    NETWORK_PHYSICS_INAIR               = 0x01,
e6faefba2ec1 fixed logger, and network projectiles should work reasonably well now
terom
parents: 223
diff changeset
    34
    NETWORK_PHYSICS_FACE_RIGHT          = 0x02,
e6faefba2ec1 fixed logger, and network projectiles should work reasonably well now
terom
parents: 223
diff changeset
    35
};
e6faefba2ec1 fixed logger, and network projectiles should work reasonably well now
terom
parents: 223
diff changeset
    36
400
d64bf28c4340 more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents: 334
diff changeset
    37
/**
d64bf28c4340 more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents: 334
diff changeset
    38
 * Various flags used with NETMSG_PROJECTILE_* messages...
d64bf28c4340 more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents: 334
diff changeset
    39
 */
224
e6faefba2ec1 fixed logger, and network projectiles should work reasonably well now
terom
parents: 223
diff changeset
    40
enum NetworkProjectileFlags {
400
d64bf28c4340 more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents: 334
diff changeset
    41
    /** NETMSG_PROJECTILE_DESTROY */
224
e6faefba2ec1 fixed logger, and network projectiles should work reasonably well now
terom
parents: 223
diff changeset
    42
    NETWORK_PROJECTILE_REMOVE_GROUND    = 0x01,
187
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    43
};
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    44
400
d64bf28c4340 more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents: 334
diff changeset
    45
/**
d64bf28c4340 more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents: 334
diff changeset
    46
 * Various NetworkMessageIDs used with our NetworkSession's NetworkObjects.
d64bf28c4340 more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents: 334
diff changeset
    47
 *
d64bf28c4340 more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents: 334
diff changeset
    48
 * Message names are of the form 'NETMSG_<object type>_<action>'
d64bf28c4340 more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents: 334
diff changeset
    49
 */
187
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    50
enum NetworkMessage {
223
2fcaf54ed37b basic network-projectiles
terom
parents: 203
diff changeset
    51
    NETMSG_PACKET_INVALID       = 0x0000,
187
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    52
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    53
    /*
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    54
     * You have joined the game:
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    55
     *
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    56
     *  Vector      initial_position
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    57
     */
223
2fcaf54ed37b basic network-projectiles
terom
parents: 203
diff changeset
    58
    NETMSG_SERVER_HELLO         = 0x0100,
187
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    59
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    60
    /*
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    61
     * New client has connected to server:
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    62
     *  
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    63
     *  Vector      initial_position
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    64
     */
223
2fcaf54ed37b basic network-projectiles
terom
parents: 203
diff changeset
    65
    NETMSG_PLAYER_JOIN          = 0x0101,
187
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    66
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    67
    /*
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    68
     * Client has left server:
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    69
     *
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    70
     */
223
2fcaf54ed37b basic network-projectiles
terom
parents: 203
diff changeset
    71
    NETMSG_PLAYER_QUIT          = 0x0102,
187
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    72
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    73
    /*
223
2fcaf54ed37b basic network-projectiles
terom
parents: 203
diff changeset
    74
     * Client has input to process
187
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    75
     *
223
2fcaf54ed37b basic network-projectiles
terom
parents: 203
diff changeset
    76
     *  uint16_t    PlayerInput
334
0cf3f2be51eb transmit handleInput dt
terom
parents: 330
diff changeset
    77
     *  uint32_t    dt
187
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    78
     */
223
2fcaf54ed37b basic network-projectiles
terom
parents: 203
diff changeset
    79
    NETMSG_CLIENT_INPUT         = 0x0201,
187
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    80
    
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    81
    /*
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    82
     * Initial player info
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    83
     *
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    84
     *  Vector      initial_position
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    85
     */
223
2fcaf54ed37b basic network-projectiles
terom
parents: 203
diff changeset
    86
    NETMSG_PLAYER_INFO          = 0x0300,
187
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    87
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    88
    /*
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    89
     * Player position update
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    90
     *
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    91
     * Vector   position
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    92
     * Vector   velocity
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    93
     * uint8_t  NetworkPhysicsFlags
200
2dbf40661580 better NetworkBuffer/Packet stuff + some additional Physics+Network stuff + random fixes
terom
parents: 187
diff changeset
    94
     * float32  aim
187
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
    95
     */
223
2fcaf54ed37b basic network-projectiles
terom
parents: 203
diff changeset
    96
    NETMSG_PLAYER_POSITION      = 0x0301,
200
2dbf40661580 better NetworkBuffer/Packet stuff + some additional Physics+Network stuff + random fixes
terom
parents: 187
diff changeset
    97
2dbf40661580 better NetworkBuffer/Packet stuff + some additional Physics+Network stuff + random fixes
terom
parents: 187
diff changeset
    98
    /*
302
e734d8e9bbb5 make spawn/die work over the network
terom
parents: 296
diff changeset
    99
     * Player has spawned somewhere
e734d8e9bbb5 make spawn/die work over the network
terom
parents: 296
diff changeset
   100
     *
e734d8e9bbb5 make spawn/die work over the network
terom
parents: 296
diff changeset
   101
     * Vector   position
e734d8e9bbb5 make spawn/die work over the network
terom
parents: 296
diff changeset
   102
     */
e734d8e9bbb5 make spawn/die work over the network
terom
parents: 296
diff changeset
   103
    NETMSG_PLAYER_SPAWN         = 0x0302,
e734d8e9bbb5 make spawn/die work over the network
terom
parents: 296
diff changeset
   104
e734d8e9bbb5 make spawn/die work over the network
terom
parents: 296
diff changeset
   105
    /*
e734d8e9bbb5 make spawn/die work over the network
terom
parents: 296
diff changeset
   106
     * Player has died
e734d8e9bbb5 make spawn/die work over the network
terom
parents: 296
diff changeset
   107
     *
e734d8e9bbb5 make spawn/die work over the network
terom
parents: 296
diff changeset
   108
     */
e734d8e9bbb5 make spawn/die work over the network
terom
parents: 296
diff changeset
   109
    NETMSG_PLAYER_DIE           = 0x0303,
e734d8e9bbb5 make spawn/die work over the network
terom
parents: 296
diff changeset
   110
e734d8e9bbb5 make spawn/die work over the network
terom
parents: 296
diff changeset
   111
    /*
200
2dbf40661580 better NetworkBuffer/Packet stuff + some additional Physics+Network stuff + random fixes
terom
parents: 187
diff changeset
   112
     * Terrain update, removeGround
2dbf40661580 better NetworkBuffer/Packet stuff + some additional Physics+Network stuff + random fixes
terom
parents: 187
diff changeset
   113
     *
2dbf40661580 better NetworkBuffer/Packet stuff + some additional Physics+Network stuff + random fixes
terom
parents: 187
diff changeset
   114
     * Vector   position 
2dbf40661580 better NetworkBuffer/Packet stuff + some additional Physics+Network stuff + random fixes
terom
parents: 187
diff changeset
   115
     * float32  radius          
2dbf40661580 better NetworkBuffer/Packet stuff + some additional Physics+Network stuff + random fixes
terom
parents: 187
diff changeset
   116
     */
241
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   117
    NETMSG_PLAYER_DIG           = 0x0312,
223
2fcaf54ed37b basic network-projectiles
terom
parents: 203
diff changeset
   118
2fcaf54ed37b basic network-projectiles
terom
parents: 203
diff changeset
   119
    /*
239
550397d9d479 implement network weapon changes and fix weapon firing
terom
parents: 224
diff changeset
   120
     * Player changed weapon
550397d9d479 implement network weapon changes and fix weapon firing
terom
parents: 224
diff changeset
   121
     *
276
87434abc1ba1 ability to send NetworkObjectID's via packets, modify Network Projectiles to use this and fix recoil/reloading
terom
parents: 263
diff changeset
   122
     * uint8_t  weapon_id
239
550397d9d479 implement network weapon changes and fix weapon firing
terom
parents: 224
diff changeset
   123
     */
241
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   124
    NETMSG_PLAYER_WEAPON_CHANGE = 0x0321,
276
87434abc1ba1 ability to send NetworkObjectID's via packets, modify Network Projectiles to use this and fix recoil/reloading
terom
parents: 263
diff changeset
   125
241
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   126
    /*
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   127
     * Player threw the rope
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   128
     *
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   129
     * Vector   position
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   130
     * Vector   velocity
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   131
     * float    length
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   132
     */
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   133
    NETMSG_PLAYER_ROPE_THROW    = 0x0331,
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   134
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   135
    /*
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   136
     * Player rope fixed on to something
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   137
     *
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   138
     * Vector   position
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   139
     * float    length
328
51d644c8d5a2 fix player-pivoted rope
terom
parents: 302
diff changeset
   140
     * Object?  player
241
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   141
     */
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   142
    NETMSG_PLAYER_ROPE_FIXED    = 0x0332,
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   143
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   144
    /*
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   145
     * Player rope released
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   146
     *
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   147
     */
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   148
    NETMSG_PLAYER_ROPE_RELEASED = 0x0333,
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   149
    
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   150
    /*
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   151
     * Rope length changed
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   152
     *
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   153
     * float length
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   154
     */
e95b1602d836 implement the ROT (Rope Over TCP) protocol
terom
parents: 239
diff changeset
   155
    NETMSG_PLAYER_ROPE_LENGTH   = 0x0334,
276
87434abc1ba1 ability to send NetworkObjectID's via packets, modify Network Projectiles to use this and fix recoil/reloading
terom
parents: 263
diff changeset
   156
    
239
550397d9d479 implement network weapon changes and fix weapon firing
terom
parents: 224
diff changeset
   157
    /*
276
87434abc1ba1 ability to send NetworkObjectID's via packets, modify Network Projectiles to use this and fix recoil/reloading
terom
parents: 263
diff changeset
   158
     * Player has fired a weapon, creating this projectile
223
2fcaf54ed37b basic network-projectiles
terom
parents: 203
diff changeset
   159
     *
276
87434abc1ba1 ability to send NetworkObjectID's via packets, modify Network Projectiles to use this and fix recoil/reloading
terom
parents: 263
diff changeset
   160
     * Object   player
223
2fcaf54ed37b basic network-projectiles
terom
parents: 203
diff changeset
   161
     * Vector   position
2fcaf54ed37b basic network-projectiles
terom
parents: 203
diff changeset
   162
     * Vector   velocity
276
87434abc1ba1 ability to send NetworkObjectID's via packets, modify Network Projectiles to use this and fix recoil/reloading
terom
parents: 263
diff changeset
   163
     * uint8_t  weapon_id
223
2fcaf54ed37b basic network-projectiles
terom
parents: 203
diff changeset
   164
     */
276
87434abc1ba1 ability to send NetworkObjectID's via packets, modify Network Projectiles to use this and fix recoil/reloading
terom
parents: 263
diff changeset
   165
    NETMSG_PROJECTILE_PLAYER_FIRED  = 0x0411,
224
e6faefba2ec1 fixed logger, and network projectiles should work reasonably well now
terom
parents: 223
diff changeset
   166
296
4d3ebaa29430 add separate Types.hh, and fix projectile-worm collisions on network
terom
parents: 276
diff changeset
   167
    /**
4d3ebaa29430 add separate Types.hh, and fix projectile-worm collisions on network
terom
parents: 276
diff changeset
   168
     * Projectile has hit a player
4d3ebaa29430 add separate Types.hh, and fix projectile-worm collisions on network
terom
parents: 276
diff changeset
   169
     *
4d3ebaa29430 add separate Types.hh, and fix projectile-worm collisions on network
terom
parents: 276
diff changeset
   170
     * Object   player
4d3ebaa29430 add separate Types.hh, and fix projectile-worm collisions on network
terom
parents: 276
diff changeset
   171
     */
4d3ebaa29430 add separate Types.hh, and fix projectile-worm collisions on network
terom
parents: 276
diff changeset
   172
    NETMSG_PROJECTILE_HIT_PLAYER    = 0x0421,
4d3ebaa29430 add separate Types.hh, and fix projectile-worm collisions on network
terom
parents: 276
diff changeset
   173
224
e6faefba2ec1 fixed logger, and network projectiles should work reasonably well now
terom
parents: 223
diff changeset
   174
    /*
e6faefba2ec1 fixed logger, and network projectiles should work reasonably well now
terom
parents: 223
diff changeset
   175
     * Projectile has gone away
e6faefba2ec1 fixed logger, and network projectiles should work reasonably well now
terom
parents: 223
diff changeset
   176
     *
e6faefba2ec1 fixed logger, and network projectiles should work reasonably well now
terom
parents: 223
diff changeset
   177
     * Vector   position
e6faefba2ec1 fixed logger, and network projectiles should work reasonably well now
terom
parents: 223
diff changeset
   178
     * uint8_t  NetworkProjectileFlags (REMOVE_GROUND)
e6faefba2ec1 fixed logger, and network projectiles should work reasonably well now
terom
parents: 223
diff changeset
   179
     */
276
87434abc1ba1 ability to send NetworkObjectID's via packets, modify Network Projectiles to use this and fix recoil/reloading
terom
parents: 263
diff changeset
   180
    NETMSG_PROJECTILE_DESTROY       = 0x040F,
187
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
   181
};
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
   182
f41f894213ca restructure network code a bit
terom
parents:
diff changeset
   183
#endif