X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame.h;h=aff4cd5fb8b288417a5428b64b5bf7b61c6b62d0;hb=06234ebe7668425f2bc05b3323fae921ac3fecff;hp=dadb6735f86859b5aaa45d834090444c74254c80;hpb=c74a890afba46c41f6ba6ef691bc89da0dd0135c;p=rocksndiamonds.git diff --git a/src/game.h b/src/game.h index dadb6735..aff4cd5f 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 */ @@ -109,10 +122,18 @@ struct PlayerInfo boolean can_fall_into_acid; + boolean gravity; + 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; @@ -197,6 +218,7 @@ void InitGame(void); void UpdateEngineValues(int, int); void GameWon(void); +void GameEnd(void); void InitPlayerGfxAnimation(struct PlayerInfo *, int, int); void Moving2Blocked(int, int, int *, int *);