422343d8484b29cd064a2322e5cd5d0e531f4ac8
[rocksndiamonds.git] / src / game.h
1 /***********************************************************
2 *  Rocks'n'Diamonds -- McDuffin Strikes Back!              *
3 *----------------------------------------------------------*
4 *  ©1995 Artsoft Development                               *
5 *        Holger Schemel                                    *
6 *        33659 Bielefeld-Senne                             *
7 *        Telefon: (0521) 493245                            *
8 *        eMail: aeglos@valinor.owl.de                      *
9 *               aeglos@uni-paderborn.de                    *
10 *               q99492@pbhrzx.uni-paderborn.de             *
11 *----------------------------------------------------------*
12 *  game.h                                                  *
13 *                                                          *
14 *  Letzte Aenderung: 15.06.1995                            *
15 ***********************************************************/
16
17 #ifndef GAME_H
18 #define GAME_H
19
20 #include "main.h"
21
22 #define PLAYER_LEVEL    0
23 #define PLAYER_SETUP    1
24
25 #define DF_DIG          0
26 #define DF_SNAP         1
27 #define DF_NO_PUSH      2
28
29 #define MF_NO_ACTION    0
30 #define MF_MOVING       1
31 #define MF_ACTION       2
32
33 BOOL CreateNewScoreFile(void);
34 BOOL CreateNewNamesFile(int);
35 void LoadLevelInfo(void);
36 void LoadLevel(int);
37 void LoadLevelTape(int);
38 void LoadScore(int);
39 void LoadPlayerInfo(int);
40 void SaveLevel(int);
41 void SaveLevelTape(int);
42 void SaveScore(int);
43 void SavePlayerInfo(int);
44 void GetPlayerConfig(void);
45 void InitGame(void);
46 void InitMovDir(int, int);
47 void GameWon(void);
48 BOOL NewHiScore(void);
49 void InitMovingField(int, int, int);
50 void Moving2Blocked(int, int, int *, int *);
51 void Blocked2Moving(int, int, int *, int *);
52 int MovingOrBlocked2Element(int, int);
53 void RemoveMovingField(int, int);
54 void DrawDynamite(int, int);
55 void CheckDynamite(int, int);
56 void Explode(int, int, int);
57 void Bang(int, int);
58 void Blurb(int, int);
59 void Impact(int, int);
60 void TurnRound(int, int);
61 void StartMoving(int, int);
62 void ContinueMoving(int, int);
63 void AmoebeWaechst(int, int);
64 void AmoebeAbleger(int, int);
65 void Life(int, int);
66 void Ablenk(int, int);
67 void Blubber(int, int);
68 void NussKnacken(int, int);
69 void SiebAktivieren(int x, int y);
70 void AusgangstuerPruefen(int x, int y);
71 void AusgangstuerOeffnen(int x, int y);
72 int GameActions(int, int, int);
73 void ScrollLevel(int, int);
74 BOOL MoveFigure(int, int);
75 void TestIfHeroHitsBadThing(void);
76 void TestIfBadThingHitsHero(void);
77 void TestIfBadThingHitsOtherBadThing(int, int);
78 void KillHero(void);
79 int DigField(int, int, int);
80 BOOL SnapField(int, int);
81 BOOL PlaceBomb(void);
82 void PlaySoundLevel(int, int, int);
83 void RaiseScore(int);
84 void TapeInitRecording(void);
85 void TapeStartRecording(void);
86 void TapeStopRecording(void);
87 void TapeRecordAction(int);
88 void TapeRecordDelay(void);
89 void TapeTogglePause(void);
90 void TapeInitPlaying(void);
91 void TapeStartPlaying(void);
92 void TapeStopPlaying(void);
93 int TapePlayAction(void);
94 BOOL TapePlayDelay(void);
95 void TapeStop(void);
96 void TapeErase(void);
97 void DrawVideoDisplay(unsigned long, unsigned long);
98 void DrawSoundDisplay(unsigned long);
99 void DrawGameButton(unsigned long);
100 void DrawChooseButton(unsigned long);
101 void DrawConfirmButton(unsigned long);
102
103 #endif