projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20060812-2-src
[rocksndiamonds.git]
/
src
/
game.h
diff --git
a/src/game.h
b/src/game.h
index 927dade7f9365ca0316091e9fedcc68e2ca04427..1718f8357a61448cb2cb43868cb55521741c5b5a 100644
(file)
--- a/
src/game.h
+++ b/
src/game.h
@@
-20,8
+20,21
@@
#define MAX_NUM_KEYS 8
#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
{
struct GameInfo
{
+ /* values for control panel */
+ struct GamePanelInfo panel;
+
/* values for engine initialization */
int default_push_delay_fixed;
int default_push_delay_random;
/* 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;
/* 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 */
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 can_fall_into_acid;
+ boolean gravity;
+
boolean LevelSolved, GameOver;
int last_move_dir;
boolean LevelSolved, GameOver;
int last_move_dir;
+ boolean is_active;
+
boolean is_waiting;
boolean is_moving;
boolean is_auto_moving;
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 Blocked2Moving(int, int, int *, int *);
void DrawDynamite(int, int);
+void StartGameActions(boolean, boolean, long);
+
void GameActions(void);
void GameActions(void);
+void GameActions_EM_Main();
+void GameActions_RND();
+
void ScrollLevel(int, int);
void InitPlayLevelSound();
void ScrollLevel(int, int);
void InitPlayLevelSound();