ScummVM API documentation
mod.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_MAZEDOOM_MOD_H
23#define HODJNPODJ_MAZEDOOM_MOD_H
24
25#include "bagel/boflib/sound.h"
26
27namespace Bagel {
28namespace HodjNPodj {
29namespace MazeDoom {
30
31#define ABS(a) ( (a > 0) ? (a) : (-a) )
32
33// Border info
34#define SIDE_BORDER 20
35#define TOP_BORDER 28
36#define BOTTOM_BORDER 16
37#define HILITE_BORDER 3
38
39// Dimensions constants
40#define ART_WIDTH 600
41#define ART_HEIGHT 432
42
43#define SQ_SIZE_X 24
44#define SQ_SIZE_Y 24
45#define EDGE_SIZE 5
46
47// Starting value defaults
48#define MAX_DIFFICULTY 10 //8
49#define MIN_DIFFICULTY 1 //0
50
51// Timer constants
52#define MIN_TIME 15 // 15 Seconds
53#define MAX_TIME 180 // 180 Seconds = 3 minute max
54#define TIMER_MIN 0 // Increment scrollbar in steps of 15 Secs
55#define TIMER_MAX 10 // if Time > MAX_TIME, No Time Limit
56
57#define NUM_COLUMNS 25
58#define NUM_ROWS 19
59#define NUM_NEIGHBORS 9 // The "clump" area is 3 X 3 grid spaces
60
61#define NUM_TRAP_MAPS 7 // There are seven trap icons available
62#define MIN_TRAPS 4
63
64#define NUM_CELS 8
65
66#define PATH 0
67#define WALL 1
68#define TRAP 2
69#define START 3
70#define EXIT 4
71
72#define HODJ 0
73#define PODJ 4
74
75// Timer stuff
76#define GAME_TIMER 1
77#define CLICK_TIME 1000 // Every Second, update timer clock
78
79// Rules files
80#define RULES_TEXT "MAZEOD.TXT"
81#define RULES_WAV "sound\\MAZEOD.WAV"
82
83// Sound files
84#define WIN_SOUND "sound\\fanfare2.wav"
85#define LOSE_SOUND "sound\\buzzer.wav"
86#define HIT_SOUND "sound\\thud.wav"
87#define TRAP_SOUND "sound\\boing.wav"
88
89#define GAME_THEME "sound\\mazeod.mid"
90
91// Backdrop bitmaps
92#define MAINSCREEN "art\\DOOM2.BMP"
93
94// New Game button area
95#define NEWGAME_LOCATION_X 15
96#define NEWGAME_LOCATION_Y 0
97#define NEWGAME_WIDTH 217
98#define NEWGAME_HEIGHT 20
99
100// Time Display area
101#define TIME_LOCATION_X 420
102#define TIME_LOCATION_Y 4
103#define TIME_WIDTH 195
104#define TIME_HEIGHT 16
105
107
108// CMainWindow:
109// See game.cpp for the code to the member functions and the message map.
110//
111class CMainWindow : public CFrameWnd {
112public:
113 CMainWindow();
114 void MovePlayer(CPoint point);
115 void GetNewCursor(); // Load up the new directional cursor
116 void NewGame(); // Set up a new game & start the timer
117
118//added data members:
119
120 void SplashScreen();
121
122private:
123 void OnSoundNotify(CSound *pSound);
124
125protected:
126 virtual bool OnCommand(WPARAM wParam, LPARAM lParam) override;
127
128 //{{AFX_MSG( CMainWindow )
129 afx_msg void OnPaint();
130 afx_msg void OnChar(unsigned int nChar, unsigned int nRepCnt, unsigned int nFlags);
131 afx_msg void OnSysChar(unsigned int nChar, unsigned int nRepCnt, unsigned int nFlags);
132 afx_msg void OnSysKeyDown(unsigned int nChar, unsigned int nRepCnt, unsigned int nFlags);
133 afx_msg void OnKeyDown(unsigned int nChar, unsigned int nRepCnt, unsigned int nFlags);
134 afx_msg void OnTimer(uintptr nIDEvent);
135 afx_msg void OnLButtonDown(unsigned int nFlags, CPoint point);
136 afx_msg void OnRButtonDown(unsigned int nFlags, CPoint point);
137 afx_msg void OnLButtonUp(unsigned int nFlags, CPoint point);
138 afx_msg void OnMouseMove(unsigned int nFlags, CPoint point);
139 afx_msg void OnClose();
140 afx_msg LRESULT OnMCINotify(WPARAM, LPARAM);
141 afx_msg LRESULT OnMMIONotify(WPARAM, LPARAM);
142 //}}AFX_MSG
143
144 DECLARE_MESSAGE_MAP()
145};
146
147} // namespace MazeDoom
148} // namespace HodjNPodj
149} // namespace Bagel
150
151#endif
Definition: afxwin.h:1532
Definition: atltypes.h:79