diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-02-02 18:05:16 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-02-02 18:05:16 +0000 |
| commit | 5f32f5b36f5013deff20ba5144d6bec9077b6ea2 (patch) | |
| tree | a94e734138edb960420aed65ebdc9a48b022713e /src/game/g_protocol.h | |
| parent | 1fe3202f0b7e2f52e50c430caa744b029fd5bcef (diff) | |
| download | zcatch-5f32f5b36f5013deff20ba5144d6bec9077b6ea2.tar.gz zcatch-5f32f5b36f5013deff20ba5144d6bec9077b6ea2.zip | |
added laser weapon
Diffstat (limited to 'src/game/g_protocol.h')
| -rw-r--r-- | src/game/g_protocol.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/game/g_protocol.h b/src/game/g_protocol.h index b0d84916..f7d26900 100644 --- a/src/game/g_protocol.h +++ b/src/game/g_protocol.h @@ -12,6 +12,7 @@ enum OBJTYPE_PLAYER_INFO, OBJTYPE_PLAYER_CHARACTER, // use this if you are searching for the player entity OBJTYPE_PROJECTILE, + OBJTYPE_LASER, OBJTYPE_POWERUP, OBJTYPE_FLAG, EVENT_EXPLOSION, @@ -136,12 +137,19 @@ struct obj_game struct obj_projectile { - int type; int x, y; int vx, vy; // should be an angle instead + int type; int start_tick; }; +struct obj_laser +{ + int x, y; + int from_x, from_y; + int eval_tick; +}; + struct obj_powerup { int x, y; |