X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame.h;h=aff4cd5fb8b288417a5428b64b5bf7b61c6b62d0;hb=06234ebe7668425f2bc05b3323fae921ac3fecff;hp=71ad7a0a3b8084c0296b9464c340b8522f15613d;hpb=2447100f7c3eacf4361973fa90814d9bd0e2b055;p=rocksndiamonds.git diff --git a/src/game.h b/src/game.h index 71ad7a0a..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; @@ -113,6 +126,10 @@ struct PlayerInfo boolean LevelSolved, GameOver; + boolean LevelSolved_GameEnd; + boolean LevelSolved_SaveTape; + boolean LevelSolved_SaveScore; + int last_move_dir; boolean is_active; @@ -201,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 *);