rnd-20040103-1-src
[rocksndiamonds.git] / src / game.h
1 /***********************************************************
2 * Rocks'n'Diamonds -- McDuffin Strikes Back!               *
3 *----------------------------------------------------------*
4 * (c) 1995-2002 Artsoft Entertainment                      *
5 *               Holger Schemel                             *
6 *               Detmolder Strasse 189                      *
7 *               33604 Bielefeld                            *
8 *               Germany                                    *
9 *               e-mail: info@artsoft.org                   *
10 *----------------------------------------------------------*
11 * game.h                                                   *
12 ***********************************************************/
13
14 #ifndef GAME_H
15 #define GAME_H
16
17 #include "main.h"
18
19 void GetPlayerConfig(void);
20 void DrawGameDoorValues(void);
21 void InitGameSound();
22 void InitGame(void);
23 void InitMovDir(int, int);
24 void InitAmoebaNr(int, int);
25 void GameWon(void);
26 int NewHiScore(void);
27
28 void InitPlayerGfxAnimation(struct PlayerInfo *, int, int);
29 void InitMovingField(int, int, int);
30 void Moving2Blocked(int, int, int *, int *);
31 void Blocked2Moving(int, int, int *, int *);
32 int MovingOrBlocked2Element(int, int);
33 void RemoveMovingField(int, int);
34 void DrawDynamite(int, int);
35 void CheckDynamite(int, int);
36 void Explode(int, int, int, int);
37 void DynaExplode(int, int);
38 void Bang(int, int);
39 void Blurb(int, int);
40 void Impact(int, int);
41 void StartMoving(int, int);
42 void ContinueMoving(int, int);
43 int AmoebeNachbarNr(int, int);
44 void AmoebeUmwandeln(int, int);
45 void AmoebeUmwandelnBD(int, int, int);
46 void AmoebeWaechst(int, int);
47 void AmoebeAbleger(int, int);
48 void Life(int, int);
49 void Ablenk(int, int);
50 void Blubber(int, int);
51 void NussKnacken(int, int);
52 void SiebAktivieren(int, int, int);
53 void AusgangstuerPruefen(int, int);
54 void AusgangstuerOeffnen(int, int);
55 void AusgangstuerBlinken(int, int);
56 void EdelsteinFunkeln(int, int);
57 void MauerWaechst(int, int);
58 void MauerAbleger(int, int);
59
60 void GameActions(void);
61 void ScrollLevel(int, int);
62
63 void TestIfGoodThingHitsBadThing(int, int, int);
64 void TestIfBadThingHitsGoodThing(int, int, int);
65 void TestIfHeroTouchesBadThing(int, int);
66 void TestIfHeroRunsIntoBadThing(int, int, int);
67 void TestIfBadThingTouchesHero(int, int);
68 void TestIfBadThingRunsIntoHero(int, int, int);
69 void TestIfFriendTouchesBadThing(int, int);
70 void TestIfBadThingTouchesFriend(int, int);
71 void TestIfBadThingTouchesOtherBadThing(int, int);
72 void KillHero(struct PlayerInfo *);
73 void BuryHero(struct PlayerInfo *);
74 void RemoveHero(struct PlayerInfo *);
75 int DigField(struct PlayerInfo *, int, int, int, int, int);
76 boolean SnapField(struct PlayerInfo *, int, int);
77 boolean DropElement(struct PlayerInfo *);
78
79 void InitPlayLevelSound();
80
81 void RaiseScore(int);
82 void RaiseScoreElement(int);
83 void RequestQuitGame(boolean);
84
85 void CreateGameButtons();
86 void FreeGameButtons();
87 void UnmapGameButtons();
88
89 #endif