rnd-20050314-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
21 void DrawGameValue_Time(int);
22 void DrawGameDoorValues(void);
23
24 void InitGameSound();
25 void InitGame(void);
26
27 void UpdateEngineValues(int, int);
28
29 void InitMovDir(int, int);
30 void InitAmoebaNr(int, int);
31 void GameWon(void);
32 int NewHiScore(void);
33
34 void InitPlayerGfxAnimation(struct PlayerInfo *, int, int);
35 void InitMovingField(int, int, int);
36 void Moving2Blocked(int, int, int *, int *);
37 void Blocked2Moving(int, int, int *, int *);
38 int MovingOrBlocked2Element(int, int);
39 void RemoveMovingField(int, int);
40 void DrawDynamite(int, int);
41 void CheckDynamite(int, int);
42 void Explode(int, int, int, int);
43 void DynaExplode(int, int);
44 void Bang(int, int);
45 void Blurb(int, int);
46 void Impact(int, int);
47 void StartMoving(int, int);
48 void ContinueMoving(int, int);
49 int AmoebeNachbarNr(int, int);
50 void AmoebeUmwandeln(int, int);
51 void AmoebeUmwandelnBD(int, int, int);
52 void AmoebeWaechst(int, int);
53 void AmoebeAbleger(int, int);
54 void Life(int, int);
55 void Ablenk(int, int);
56 void Blubber(int, int);
57 void NussKnacken(int, int);
58 void SiebAktivieren(int, int, int);
59 void AusgangstuerPruefen(int, int);
60 void AusgangstuerOeffnen(int, int);
61 void AusgangstuerBlinken(int, int);
62 void EdelsteinFunkeln(int, int);
63 void MauerWaechst(int, int);
64 void MauerAbleger(int, int);
65
66 void GameActions(void);
67 void ScrollLevel(int, int);
68
69 void TestIfGoodThingHitsBadThing(int, int, int);
70 void TestIfBadThingHitsGoodThing(int, int, int);
71 void TestIfHeroTouchesBadThing(int, int);
72 void TestIfHeroRunsIntoBadThing(int, int, int);
73 void TestIfBadThingTouchesHero(int, int);
74 void TestIfBadThingRunsIntoHero(int, int, int);
75 void TestIfFriendTouchesBadThing(int, int);
76 void TestIfBadThingTouchesFriend(int, int);
77 void TestIfBadThingTouchesOtherBadThing(int, int);
78 void KillHero(struct PlayerInfo *);
79 void BuryHero(struct PlayerInfo *);
80 void RemoveHero(struct PlayerInfo *);
81 boolean SnapField(struct PlayerInfo *, int, int);
82 boolean DropElement(struct PlayerInfo *);
83
84 void InitPlayLevelSound();
85 void PlayLevelSound_EM(int, int, int, int);
86
87 void RaiseScore(int);
88 void RaiseScoreElement(int);
89 void RequestQuitGame(boolean);
90
91 void CreateGameButtons();
92 void FreeGameButtons();
93 void UnmapGameButtons();
94
95 #endif