X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame.h;h=1718f8357a61448cb2cb43868cb55521741c5b5a;hb=38ea4e57bc9b730abf7a15f8cc235465e6f0ad4c;hp=927dade7f9365ca0316091e9fedcc68e2ca04427;hpb=c4dd9e14b72b528e82bc018fe2fa76b784221584;p=rocksndiamonds.git diff --git a/src/game.h b/src/game.h index 927dade7..1718f835 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,14 @@ struct PlayerInfo boolean can_fall_into_acid; + boolean gravity; + boolean LevelSolved, GameOver; int last_move_dir; + boolean is_active; + boolean is_waiting; boolean is_moving; boolean is_auto_moving; @@ -203,7 +220,12 @@ void Moving2Blocked(int, int, int *, int *); void Blocked2Moving(int, int, int *, int *); void DrawDynamite(int, int); +void StartGameActions(boolean, boolean, long); + void GameActions(void); +void GameActions_EM_Main(); +void GameActions_RND(); + void ScrollLevel(int, int); void InitPlayLevelSound();