1 /***********************************************************
2 * Rocks'n'Diamonds -- McDuffin Strikes Back! *
3 *----------------------------------------------------------*
4 * (c) 1995-2001 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);
34 void InitMovDir(int, int);
35 void InitAmoebaNr(int, int);
38 void InitMovingField(int, int, int);
39 void Moving2Blocked(int, int, int *, int *);
40 void Blocked2Moving(int, int, int *, int *);
41 int MovingOrBlocked2Element(int, int);
42 void RemoveMovingField(int, int);
43 void DrawDynamite(int, int);
44 void CheckDynamite(int, int);
45 void Explode(int, int, int, int);
46 void DynaExplode(int, int);
49 void Impact(int, int);
50 void TurnRound(int, int);
51 void StartMoving(int, int);
52 void ContinueMoving(int, int);
53 int AmoebeNachbarNr(int, int);
54 void AmoebeUmwandeln(int, int);
55 void AmoebeUmwandelnBD(int, int, int);
56 void AmoebeWaechst(int, int);
57 void AmoebeAbleger(int, int);
59 void Ablenk(int, int);
60 void Blubber(int, int);
61 void NussKnacken(int, int);
62 void SiebAktivieren(int, int, int);
63 void AusgangstuerPruefen(int, int);
64 void AusgangstuerOeffnen(int, int);
65 void AusgangstuerBlinken(int, int);
66 void EdelsteinFunkeln(int, int);
67 void MauerWaechst(int, int);
68 void MauerAbleger(int, int);
69 void GameActions(void);
70 void ScrollLevel(int, int);
72 boolean MoveFigureOneStep(struct PlayerInfo *, int, int, int, int);
73 boolean MoveFigure(struct PlayerInfo *, int, int);
74 void ScrollFigure(struct PlayerInfo *, int);
75 void ScrollScreen(struct PlayerInfo *, int);
77 void TestIfGoodThingHitsBadThing(int, int, int);
78 void TestIfBadThingHitsGoodThing(int, int, int);
79 void TestIfHeroTouchesBadThing(int, int);
80 void TestIfHeroRunsIntoBadThing(int, int, int);
81 void TestIfBadThingTouchesHero(int, int);
82 void TestIfBadThingRunsIntoHero(int, int, int);
83 void TestIfFriendTouchesBadThing(int, int);
84 void TestIfBadThingTouchesFriend(int, int);
85 void TestIfBadThingTouchesOtherBadThing(int, int);
86 void KillHero(struct PlayerInfo *);
87 void BuryHero(struct PlayerInfo *);
88 void RemoveHero(struct PlayerInfo *);
89 int DigField(struct PlayerInfo *, int, int, int, int, int);
90 boolean SnapField(struct PlayerInfo *, int, int);
91 boolean PlaceBomb(struct PlayerInfo *);
92 void PlaySoundLevel(int, int, int);
94 void RaiseScoreElement(int);
95 void RequestQuitGame(boolean);
97 void CreateGameButtons();
98 void UnmapGameButtons();