22#ifndef HODJNPODJ_DFA_DFA_H
23#define HODJNPODJ_DFA_DFA_H
25#include "bagel/boflib/sound.h"
26#include "bagel/hodjnpodj/hnplibs/dibdoc.h"
27#include "bagel/hodjnpodj/hnplibs/gamedll.h"
28#include "bagel/hodjnpodj/dfa/globals.h"
29#include "bagel/hodjnpodj/dfa/resource.h"
30#include "bagel/hodjnpodj/hnplibs/cbofdlg.h"
31#include "bagel/hodjnpodj/hnplibs/mainmenu.h"
32#include "bagel/hodjnpodj/hnplibs/button.h"
33#include "bagel/hodjnpodj/hnplibs/rules.h"
34#include "bagel/hodjnpodj/hnplibs/text.h"
35#include "bagel/hodjnpodj/hnplibs/bitmaps.h"
36#include "bagel/hodjnpodj/hnplibs/sprite.h"
44#define IDC_LETTERBUTTON 200
52#define RULESFILE "DFA.TXT"
53#define RULES_WAV "sound\\DAMFUR.WAV"
56#define GAME_THEME "sound\\DAMFUR.MID"
57#define HIT_1_WAV "sound\\OW1.WAV"
58#define HIT_2_WAV "sound\\OW2.WAV"
59#define HIT_3_WAV "sound\\OW3.WAV"
60#define HIT_4_WAV "sound\\OW4.WAV"
61#define HIT_5_WAV "sound\\OW5.WAV"
62#define HIT_6_WAV "sound\\OW6.WAV"
63#define HIT_7_WAV "sound\\OW7.WAV"
64#define HIT_8_WAV "sound\\OW8.WAV"
65#define HIT_9_WAV "sound\\OW9.WAV"
66#define HIT_10_WAV "sound\\OW10.WAV"
67#define HIT_11_WAV "sound\\OW11.WAV"
68#define MISS_1_WAV "sound\\HAHA.WAV"
69#define MISS_2_WAV "sound\\MISSED.WAV"
70#define MISS_3_WAV "sound\\MISSEDME.WAV"
71#define TICK_WAV "sound\\TICK.WAV"
72#define TIME_WAV "sound\\BUZZER.WAV"
73#define LAKE_WAV "sound\\LAKE.WAV"
74#define MOUNT_WAV "sound\\YODEL.WAV"
75#define BEE_WAV "sound\\BEE.WAV"
76#define WATCH_WAV "sound\\CUCKOO.WAV"
78#define NUM_HIT_SOUNDS 11
79#define NUM_MISS_SOUNDS 3
104#define OPTSCROLL "ART\\SSCROLL.BMP"
105#define BEAVER1 "ART\\BEAVER1.BMP"
106#define BEAVER2 "ART\\BEAVER2.BMP"
107#define BEAVER3 "ART\\BEAVER3.BMP"
108#define BEAVER4 "ART\\BEAVER4.BMP"
109#define BEAVER5 "ART\\BEAVER5.BMP"
110#define BEAVER6 "ART\\BEAVER6.BMP"
111#define BEAVER7 "ART\\BEAVER7.BMP"
114#define OPTION_WIDTH 146
115#define OPTION_HEIGHT 23
116#define OPTION_LEFT 246
119#define NUMBEROFCOLS 20
120#define NUMBEROFROWS 14
130 unsigned int m_nTimeForGame = 0;
131 int m_nBeaverDuration = 0;
134 bool m_bPlaySounds =
false;
135 HWND m_hCallAppWnd =
nullptr;
136 LPGAMESTRUCT m_lpGameStruct =
nullptr;
137 bool m_bMouseCaptured =
false;
143 CRect arBeaver[NUM_BEAVERS];
145 CString aHitFile[NUM_HIT_SOUNDS];
146 CString aMissFile[NUM_MISS_SOUNDS];
153 static void ReleaseResources();
154 static void FlushInputEvents();
158 void LoadNewGrid(
int = 1);
159 void CreateNewGrid();
162 void OnSoundNotify(CSound *pSound);
165 virtual bool OnCommand(WPARAM wParam, LPARAM lParam)
override;
166 bool LoadBeaverSounds();
167 void ReleaseBeaverSounds();
171 char *m_pHitSound[NUM_HIT_SOUNDS] = {};
172 HANDLE m_hHitRes[NUM_HIT_SOUNDS] = {};
173 char *m_pMissSound[NUM_MISS_SOUNDS] = {};
174 HANDLE m_hMissRes[NUM_MISS_SOUNDS] = {};
177 afx_msg
void OnPaint();
178 afx_msg
void OnClose();
179 afx_msg
void OnDestroy();
180 afx_msg
void OnTimer(uintptr);
181 afx_msg
void OnRButtonDown(
unsigned int,
CPoint);
182 afx_msg
void OnLButtonDown(
unsigned int,
CPoint);
183 afx_msg
void OnLButtonUp(
unsigned int,
CPoint);
184 afx_msg
void OnMouseMove(
unsigned int,
CPoint);
185 afx_msg
void OnSysKeyDown(
unsigned int,
unsigned int,
unsigned int);
186 afx_msg
void OnKeyDown(
unsigned int,
unsigned int,
unsigned int);
187 afx_msg
bool OnEraseBkgnd(
CDC *);
188 afx_msg
void OnActivate(
unsigned int nState,
CWnd *pWndOther,
bool bMinimized)
override;
189 afx_msg LRESULT OnMCINotify(WPARAM, LPARAM);
190 afx_msg LRESULT OnMMIONotify(WPARAM, LPARAM);
193 DECLARE_MESSAGE_MAP()
Definition: afxwin.h:1532
Definition: atltypes.h:79
Definition: atltypes.h:131
Definition: afxwin.h:1141