projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a31f49b
)
changed order of some structures in EM engine
author
Holger Schemel
<info@artsoft.org>
Thu, 20 Feb 2020 17:17:11 +0000
(18:17 +0100)
committer
Holger Schemel
<info@artsoft.org>
Tue, 19 May 2020 16:20:00 +0000
(18:20 +0200)
src/game_em/emerald.h
patch
|
blob
|
history
diff --git
a/src/game_em/emerald.h
b/src/game_em/emerald.h
index bceb8473cb5944c4134668fa3cf9ed0448348207..50038d4d2135a3ed5cba9a795d4a0514b6370f1f 100644
(file)
--- a/
src/game_em/emerald.h
+++ b/
src/game_em/emerald.h
@@
-572,7
+572,7
@@
enum
enum
{
enum
{
- SOUND_blank
= 0,
/* player walks on blank */
+ SOUND_blank
,
/* player walks on blank */
SOUND_roll, /* player pushes stone/bomb/nut/spring */
SOUND_stone, /* stone hits ground */
SOUND_nut, /* nut hits ground */
SOUND_roll, /* player pushes stone/bomb/nut/spring */
SOUND_stone, /* stone hits ground */
SOUND_nut, /* nut hits ground */
@@
-616,6
+616,37
@@
enum
// data structure definitions
// ----------------------------------------------------------------------------
// data structure definitions
// ----------------------------------------------------------------------------
+/* structure used by logic() for gameplay */
+
+struct PLAYER
+{
+ int num;
+ int exists;
+ int alive_initial;
+ int alive;
+
+ int dynamite;
+ int dynamite_cnt;
+ int keys;
+ int anim;
+
+ int x;
+ int y;
+ int oldx;
+ int oldy;
+
+ int last_move_dir;
+
+ int joy_n:1;
+ int joy_e:1;
+ int joy_s:1;
+ int joy_w:1;
+ int joy_snap:1;
+ int joy_drop:1;
+ int joy_stick:1;
+ int joy_spin:1;
+};
+
struct LOGIC
{
int width; /* cave width */
struct LOGIC
{
int width; /* cave width */
@@
-703,33
+734,4
@@
struct LOGIC
short **boom;
};
short **boom;
};
-struct PLAYER
-{
- int num;
- int exists;
- int alive_initial;
- int alive;
-
- int dynamite;
- int dynamite_cnt;
- int keys;
- int anim;
-
- int x;
- int y;
- int oldx;
- int oldy;
-
- int last_move_dir;
-
- int joy_n:1;
- int joy_e:1;
- int joy_s:1;
- int joy_w:1;
- int joy_snap:1;
- int joy_drop:1;
- int joy_stick:1;
- int joy_spin:1;
-};
-
#endif // EMERALD_H
#endif // EMERALD_H