22 #ifndef HODJNPODJ_CRYPT_MAIN_H 23 #define HODJNPODJ_CRYPT_MAIN_H 25 #include "bagel/boflib/sound.h" 26 #include "bagel/hodjnpodj/hnplibs/gamedll.h" 27 #include "bagel/hodjnpodj/crypt/crypt.h" 33 #define NEW_GAME_LEFT 15 34 #define NEW_GAME_TOP 2 35 #define NEW_GAME_RIGHT 233 36 #define NEW_GAME_BOTTOM 21 38 #define PAUSE_TIME 15000 // Pause for 15 seconds -- allows user to read quote 41 #define GAME_THEME ".\\sound\\crypt.mid" 43 #define RULES_TEXT "CRYPTRUL.TXT" 44 #define RULES_WAV ".\\SOUND\\CRYPT.WAV" 49 #define WAV_TIMEOUT ".\\SOUND\\BUZZER.WAV" 50 #define WAV_WON ".\\SOUND\\SOUNDWON.WAV" 51 #define WAV_URN1 ".\\SOUND\\OUTTHERE.WAV" 52 #define WAV_URN2 ".\\SOUND\\SPOOKMUS.WAV" 53 #define WAV_URN3 ".\\SOUND\\BUTFLIES.WAV" 54 #define WAV_JOKE1 ".\\SOUND\\JOKE1.WAV" 55 #define WAV_JOKE2 ".\\SOUND\\JOKE2.WAV" 56 #define WAV_JOKE3 ".\\SOUND\\JOKE3.WAV" 57 #define WAV_JOKE4 ".\\SOUND\\JOKE4.WAV" 58 #define WAV_JOKE5 ".\\SOUND\\JOKE5.WAV" 59 #define WAV_JOKE6 ".\\SOUND\\JOKE6.WAV" 60 #define WAV_TORCH ".\\SOUND\\FIREENG.WAV" 61 #define WAV_GRYPH ".\\SOUND\\GRYPHON.WAV" 62 #define WAV_STEPS ".\\SOUND\\STAIRS.WAV" 63 #define WAV_HOUR ".\\SOUND\\SANDTIME.WAV" 65 #define NUM_SKULL_SOUNDS 6 68 #define SKULL_X 21 //15 69 #define SKULL_Y 257 //245 74 #define URN1_X 98 //95 75 #define URN1_Y 28 //22 76 #define URN1_DX 42 //54 77 #define URN1_DY 133 //48 80 #define URN2_X 204 //186 81 #define URN2_Y 25 //24 82 #define URN2_DX 94 //120 83 #define URN2_DY 104 //106 86 #define URN3_X 361 //357 87 #define URN3_Y 26 //23 88 #define URN3_DX 72 //84 89 #define URN3_DY 103 //108 92 #define NUM_SKULL_CELS 20 93 #define NUM_URN1_CELS 25 94 #define NUM_URN2_CELS 22 95 #define NUM_URN3_CELS 20 98 #define SKULL_SLEEP 100 99 #define JOKE1_SLEEP 130 // funny thing 100 #define JOKE2_SLEEP 130 // pj's part A 101 #define JOKE2B_SLEEP 120 // pj's part B 102 #define JOKE3_SLEEP 120 // audience 103 #define JOKE4_SLEEP 130 // brooklyn 104 #define JOKE5_SLEEP 150 // philly 105 #define JOKE6_SLEEP 40 // sock it to me 106 #define URN1_SLEEP 150 107 #define URN2_SLEEP 200 108 #define URN3_SLEEP 125 152 static void FlushInputEvents();
153 void DisplayStats(
CDC*);
160 LPGAMESTRUCT m_lpGameStruct;
165 bool m_bIgnoreScrollClick;
166 bool m_bIsFirstTimeHack;
172 void OnSoundNotify(CSound *pSound);
175 virtual bool OnCommand(WPARAM wParam, LPARAM lParam)
override;
178 afx_msg
void OnPaint();
179 afx_msg
void OnLButtonDown(
unsigned int,
CPoint);
180 afx_msg
void OnLButtonUp(
unsigned int,
CPoint);
181 afx_msg
void OnLButtonDblClk(
unsigned int,
CPoint);
182 afx_msg
void OnMButtonDown(
unsigned int,
CPoint);
183 afx_msg
void OnMButtonUp(
unsigned int,
CPoint);
184 afx_msg
void OnMButtonDblClk(
unsigned int,
CPoint);
185 afx_msg
void OnRButtonDown(
unsigned int,
CPoint);
186 afx_msg
void OnRButtonUp(
unsigned int,
CPoint);
187 afx_msg
void OnRButtonDblClk(
unsigned int,
CPoint);
188 afx_msg
void OnMouseMove(
unsigned int nFlags,
CPoint point);
189 afx_msg
void OnChar(
unsigned int nChar,
unsigned int nRepCnt,
unsigned int nFlags);
190 afx_msg
void OnSysChar(
unsigned int nChar,
unsigned int nRepCnt,
unsigned int nFlags);
191 afx_msg
void OnSysKeyDown(
unsigned int nChar,
unsigned int nRepCnt,
unsigned int nFlags);
192 afx_msg
void OnKeyDown(
unsigned int nChar,
unsigned int nRepCnt,
unsigned int nFlags);
193 afx_msg
void OnTimer(uintptr nIDEvent);
194 afx_msg
void OnClose();
195 afx_msg
void OnDestroy();
197 afx_msg LRESULT OnMCINotify(WPARAM, LPARAM);
198 afx_msg LRESULT OnMMIONotify(WPARAM, LPARAM);
201 DECLARE_MESSAGE_MAP()
Definition: afxwin.h:1125
Definition: afxwin.h:1514
Definition: atltypes.h:79
Definition: afxwin.h:1943
Definition: atltypes.h:131
Definition: afxwin.h:1100