1 /***********************************************************
2 * Rocks'n'Diamonds -- McDuffin Strikes Back! *
3 *----------------------------------------------------------*
4 * (c) 1995-2002 Artsoft Entertainment *
6 * Detmolder Strasse 189 *
9 * e-mail: info@artsoft.org *
10 *----------------------------------------------------------*
12 ***********************************************************/
19 /* score for elements (also used by editor.c) */
20 #define SC_EDELSTEIN 0
27 #define SC_KOKOSNUSS 7
29 #define SC_SCHLUESSEL 9
30 #define SC_ZEITBONUS 10
32 void GetPlayerConfig(void);
33 void DrawGameDoorValues(void);
36 void InitMovDir(int, int);
37 void InitAmoebaNr(int, int);
40 void InitMovingField(int, int, int);
41 void Moving2Blocked(int, int, int *, int *);
42 void Blocked2Moving(int, int, int *, int *);
43 int MovingOrBlocked2Element(int, int);
44 void RemoveMovingField(int, int);
45 void DrawDynamite(int, int);
46 void CheckDynamite(int, int);
47 void Explode(int, int, int, int);
48 void DynaExplode(int, int);
51 void Impact(int, int);
52 void TurnRound(int, int);
53 void StartMoving(int, int);
54 void ContinueMoving(int, int);
55 int AmoebeNachbarNr(int, int);
56 void AmoebeUmwandeln(int, int);
57 void AmoebeUmwandelnBD(int, int, int);
58 void AmoebeWaechst(int, int);
59 void AmoebeAbleger(int, int);
61 void Ablenk(int, int);
62 void Blubber(int, int);
63 void NussKnacken(int, int);
64 void SiebAktivieren(int, int, int);
65 void AusgangstuerPruefen(int, int);
66 void AusgangstuerOeffnen(int, int);
67 void AusgangstuerBlinken(int, int);
68 void EdelsteinFunkeln(int, int);
69 void MauerWaechst(int, int);
70 void MauerAbleger(int, int);
71 void GameActions(void);
72 void ScrollLevel(int, int);
74 boolean MoveFigureOneStep(struct PlayerInfo *, int, int, int, int);
75 boolean MoveFigure(struct PlayerInfo *, int, int);
76 void ScrollFigure(struct PlayerInfo *, int);
77 void ScrollScreen(struct PlayerInfo *, int);
79 void TestIfGoodThingHitsBadThing(int, int, int);
80 void TestIfBadThingHitsGoodThing(int, int, int);
81 void TestIfHeroTouchesBadThing(int, int);
82 void TestIfHeroRunsIntoBadThing(int, int, int);
83 void TestIfBadThingTouchesHero(int, int);
84 void TestIfBadThingRunsIntoHero(int, int, int);
85 void TestIfFriendTouchesBadThing(int, int);
86 void TestIfBadThingTouchesFriend(int, int);
87 void TestIfBadThingTouchesOtherBadThing(int, int);
88 void KillHero(struct PlayerInfo *);
89 void BuryHero(struct PlayerInfo *);
90 void RemoveHero(struct PlayerInfo *);
91 int DigField(struct PlayerInfo *, int, int, int, int, int);
92 boolean SnapField(struct PlayerInfo *, int, int);
93 boolean PlaceBomb(struct PlayerInfo *);
95 void RaiseScoreElement(int);
96 void RequestQuitGame(boolean);
98 void CreateGameButtons();
99 void UnmapGameButtons();