X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame.h;h=f855387a33568ae19c90942a786a34a60e9c2232;hb=f7704e2d22e9499efe6380e0c916c2bd4918e4be;hp=d46982d7f33c6f9219ebbd90d0be7c244e1b7617;hpb=b1e5d6292d3b60eb17f1f5e7e0ff7bdec80eece0;p=rocksndiamonds.git diff --git a/src/game.h b/src/game.h index d46982d7..f855387a 100644 --- a/src/game.h +++ b/src/game.h @@ -20,8 +20,21 @@ #define MAX_NUM_KEYS 8 +struct GamePanelInfo +{ + struct XY level; + struct XY gems; + struct XY inventory; + struct XY keys; + struct XY score; + struct XY time; +}; + struct GameInfo { + /* values for control panel */ + struct GamePanelInfo panel; + /* values for engine initialization */ int default_push_delay_fixed; int default_push_delay_random; @@ -29,8 +42,8 @@ struct GameInfo /* constant within running game */ int engine_version; int emulation; - int initial_move_delay; - int initial_move_delay_value; + int initial_move_delay[MAX_PLAYERS]; + int initial_move_delay_value[MAX_PLAYERS]; int initial_push_delay_value; /* flags to handle bugs in and changes between different engine versions */ @@ -113,8 +126,14 @@ struct PlayerInfo boolean LevelSolved, GameOver; + boolean LevelSolved_GameEnd; + boolean LevelSolved_SaveTape; + boolean LevelSolved_SaveScore; + int last_move_dir; + boolean is_active; + boolean is_waiting; boolean is_moving; boolean is_auto_moving; @@ -195,10 +214,11 @@ void DrawGameValue_Time(int); void DrawGameDoorValues(void); void InitGameSound(); -void InitGame(void); +void InitGame(); void UpdateEngineValues(int, int); void GameWon(void); +void GameEnd(void); void InitPlayerGfxAnimation(struct PlayerInfo *, int, int); void Moving2Blocked(int, int, int *, int *);