ScummVM API documentation
game.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef HODJNPODJ_PDQ_GAME_H
23 #define HODJNPODJ_PDQ_GAME_H
24 
25 #include "bagel/afxwin.h"
26 #include "bagel/hodjnpodj/hnplibs/stdinc.h"
27 #include "bagel/boflib/error.h"
28 
29 namespace Bagel {
30 namespace HodjNPodj {
31 namespace PDQ {
32 
33 #define MAX_PLENGTH 25
34 #define MAX_PLENGTH_S 30
35 
36 #define MAX_TURNS 3 // Max Turn Count when playing the metagame
37 
38 // Easter Egg info:
39 #define BIRD_X 43
40 #define BIRD_Y 241
41 #define BIRD_DX 94
42 #define BIRD_DY 44
43 #define NUM_BIRD_CELS 20
44 #define BIRD_SLEEP 40
45 
46 #define HORSE1_X 158
47 #define HORSE1_Y 146
48 #define HORSE1_DX 85
49 #define HORSE1_DY 126
50 #define NUM_HORSE1_CELS 16
51 #define HORSE1_SLEEP 100
52 
53 #define HORSE2_X 240
54 #define HORSE2_Y 188
55 #define HORSE2_DX 127
56 #define HORSE2_DY 249
57 #define NUM_HORSE2_CELS 14
58 #define HORSE2_SLEEP 100
59 
60 #define FLOWER_X 578
61 #define FLOWER_Y 246
62 #define FLOWER_DX 47
63 #define FLOWER_DY 64
64 #define NUM_FLOWER_CELS 21
65 #define FLOWER_SLEEP 200
66 
67 #define BIRD_ANIM ".\\ART\\BIRD.BMP"
68 #define HORSE1_ANIM ".\\ART\\HORSE1.BMP"
69 #define HORSE2_ANIM ".\\ART\\HORSE2.BMP"
70 #define FLOWER_ANIM ".\\ART\\FLOWER.BMP"
71 
72 #define WAV_REVEAL ".\\SOUND\\REVEAL.WAV"
73 #define WAV_BADGUESS ".\\SOUND\\BADGUESS.WAV"
74 #define WAV_GAMEOVER ".\\SOUND\\GAMEOVER.WAV"
75 #define WAV_YOUWIN ".\\SOUND\\YOUWIN.WAV"
76 #define WAV_HORSE1 ".\\SOUND\\HORSE1.WAV"
77 #define WAV_HORSE2 ".\\SOUND\\HORSE2.WAV"
78 #define WAV_BIRD ".\\SOUND\\BIRD.WAV"
79 #define WAV_FLOWER ".\\SOUND\\WEIRD.WAV"
80 
81 #define MID_SOUNDTRACK ".\\SOUND\\THGESNG.MID"
82 
83 /*
84 * prototypes
85 */
86 extern ERROR_CODE InitGame(HWND, CDC *);
87 extern ERROR_CODE StartGame(CDC *);
88 extern void GameStopTimer();
89 extern ERROR_CODE GameStartTimer();
90 extern void GamePauseTimer();
91 extern void GameResumeTimer();
92 extern ERROR_CODE EndGame(CDC *);
93 extern void WinGame();
94 extern ERROR_CODE RepaintSpriteList(CDC *);
95 extern bool CheckUserGuess(const char *);
96 extern void CALLBACK GetGameParams(CWnd *);
97 extern void GameGetScore(unsigned int *, unsigned int *, unsigned int *, unsigned int *);
98 
99 } // namespace PDQ
100 } // namespace HodjNPodj
101 } // namespace Bagel
102 
103 #endif
Definition: afxwin.h:27