diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-07-15 10:47:50 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-07-15 10:47:50 +0000 |
| commit | 8a4cd7627e78d87b44c52bf53786c6891ded6866 (patch) | |
| tree | d9b3e038554bf10dc4f83c1dcc9e656e6f3f101f /src/game/game.h | |
| parent | 60b252c584adc35f02ce2e00ea4556cc2a81958d (diff) | |
| download | zcatch-8a4cd7627e78d87b44c52bf53786c6891ded6866.tar.gz zcatch-8a4cd7627e78d87b44c52bf53786c6891ded6866.zip | |
added score and time limit. cleaned up the code aswell abit
Diffstat (limited to 'src/game/game.h')
| -rw-r--r-- | src/game/game.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/game/game.h b/src/game/game.h index 16a30e44..9f5aeda3 100644 --- a/src/game/game.h +++ b/src/game/game.h @@ -26,6 +26,7 @@ inline bool col_check_point(baselib::vec2 p) { return col_check_point(p.x, p.y); enum { OBJTYPE_NULL=0, + OBJTYPE_GAME, OBJTYPE_PLAYER, OBJTYPE_PROJECTILE, OBJTYPE_POWERUP, @@ -83,6 +84,17 @@ struct ev_damageind int angle; }; +struct obj_game +{ + int round_start_tick; + int game_over; + int sudden_death; + int paused; + + int score_limit; + int time_limit; +}; + struct obj_projectile { int type; @@ -99,7 +111,6 @@ struct obj_powerup struct obj_player { - //int name[8]; int local; int clientid; @@ -111,12 +122,9 @@ struct obj_player int vx, vy; int angle; - // current active weapon - int weapon; - // current active modifier + int weapon; // current active weapon - // num attack ticks left of current attack - int attacktick; + int attacktick; // num attack ticks left of current attack int score; int emote; |