about summary refs log tree commit diff
path: root/src/game/g_protocol.h
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-02-02 18:05:16 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-02-02 18:05:16 +0000
commit5f32f5b36f5013deff20ba5144d6bec9077b6ea2 (patch)
treea94e734138edb960420aed65ebdc9a48b022713e /src/game/g_protocol.h
parent1fe3202f0b7e2f52e50c430caa744b029fd5bcef (diff)
downloadzcatch-5f32f5b36f5013deff20ba5144d6bec9077b6ea2.tar.gz
zcatch-5f32f5b36f5013deff20ba5144d6bec9077b6ea2.zip
added laser weapon
Diffstat (limited to 'src/game/g_protocol.h')
-rw-r--r--src/game/g_protocol.h10
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;