22#ifndef HODJNPODJ_ARTPARTS_ARTPARTS_H
23#define HODJNPODJ_ARTPARTS_ARTPARTS_H
25#include "bagel/boflib/sound.h"
26#include "bagel/hodjnpodj/hnplibs/button.h"
27#include "bagel/hodjnpodj/hnplibs/text.h"
36#define BOTTOM_BORDER 20
37#define HILITE_BORDER 3
54#define START_COLUMNS 4
63#define DISPLAY_TIMER 1
67#define CLICK_TIME 1000
68#define PAUSE_TIME 3000
71#define PICK_SOUND "sound\\pickart.wav"
72#define SWITCH_SOUND "sound\\moveart.wav"
73#define WIN_SOUND "sound\\sound146.wav"
74#define UNDO_SOUND "sound\\sound355.wav"
75#define LOSE_SOUND "sound\\buzzer.wav"
76#define RULES_WAV "sound\\artparts.wav"
78#define GAME_THEME "sound\\artparts.mid"
81#define MAINSCREEN "art\\ARTPART1.BMP"
82#define FRAMESCREEN "art\\ARTPART1.BMP"
83#define TEXTSCREEN "art\\ARTTEMP.BMP"
85#define DATA_FILE "artfiles.dat"
86#define MAX_FILE_LENGTH 20
89#define NEWGAME_LOCATION_X 70
90#define NEWGAME_LOCATION_Y 5
91#define NEWGAME_WIDTH 113
92#define NEWGAME_HEIGHT 13
95#define TIME_LOCATION_X 457
96#define TIME_LOCATION_Y 4
110 void DrawPart(
const CPoint &Src,
const CPoint &Dst,
int nWidth,
int nHeight);
111 void SwitchAreas(
const CRect &Src,
const CRect &Dst);
115 void ShowOutOfPlace();
118 bool m_bPlaying =
false;
119 bool m_bNewGame =
false;
120 bool m_bFirst =
false;
132 void SplashScratch();
133 void SplashScratchPaint();
136 POINT Grid[MAX_COLUMNS][MAX_ROWS];
140 *pScratch2 =
nullptr,
145 CDC *pScratch1DC =
nullptr,
146 *pScratch2DC =
nullptr;
147 CText *m_pTimeText =
nullptr;
148 CBitmap *pLocaleBitmap =
nullptr,
149 *pBlankBitmap =
nullptr;
151 bool bStartOkay =
true;
152 bool bGameStarted =
false;
153 bool bSwitched =
false;
155 bool m_bIgnoreScrollClick;
156 bool m_bShowOutOfPlace =
false;
157 char szCurrentArt[64] = {};
162 static int nLastPick;
165 static int m_nColumns;
167 static int m_nHeight;
168 static float m_nScore;
173 static int tempColumns;
174 static bool tempFramed;
176 CSound *pGameSound =
nullptr;
180 void OnSoundNotify(CSound *pSound);
182 void MyFocusRect(
CDC *pDC,
CRect rect,
int nDrawMode);
183 static void GetSubOptions(
CWnd *pParentWind);
186 virtual bool OnCommand(WPARAM wParam, LPARAM lParam)
override;
189 afx_msg
void OnPaint();
190 afx_msg
void OnChar(
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 OnTimer(uintptr nIDEvent);
193 afx_msg
void OnLButtonDown(
unsigned int nFlags,
CPoint point);
194 afx_msg
void OnRButtonDown(
unsigned int nFlags,
CPoint point);
195 afx_msg
void OnLButtonUp(
unsigned int nFlags,
CPoint point);
196 afx_msg
void OnMButtonDown(
unsigned int nFlags,
CPoint point);
197 afx_msg
void OnMouseMove(
unsigned int nFlags,
CPoint point);
198 afx_msg
void OnKeyDown(
unsigned int nChar,
unsigned int nRepCnt,
unsigned int nFlags);
199 afx_msg
void OnClose();
200 afx_msg LRESULT OnMCINotify(WPARAM, LPARAM);
201 afx_msg LRESULT OnMMIONotify(WPARAM, LPARAM);
204 DECLARE_MESSAGE_MAP()
Definition: artparts.h:104
Definition: afxwin.h:1532
Definition: atltypes.h:79
Definition: atltypes.h:131
Definition: afxwin.h:1141
Definition: minwindef.h:161