22#ifndef HODJNPODJ_BEACON_BEACON_H
23#define HODJNPODJ_BEACON_BEACON_H
25#include "bagel/boflib/sound.h"
31#define ABS(a) ( (a > 0) ? (a) : (-a) )
35#define BOTTOM_BORDER 16
45#define CHANGE_BEAM 144
47#define BUTTON_ENTRY 176
57#define NUM_COLUMNS (ART_WIDTH / GRID_WIDTH)
58#define NUM_ROWS (ART_HEIGHT / GRID_HEIGHT)
61#define LTHOUSE_OFFSET_X 20
62#define LTHOUSE_OFFSET_Y 15
63#define LTHOUSE_WIDTH 50
64#define LTHOUSE_HEIGHT 70
67#define START_OFFSET_X 36
68#define START_OFFSET_Y 28
70#define START_HEIGHT 88
73#define BLOCK_SPACE_X 6
74#define BLOCK_SPACE_Y 6
75#define BLOCK_OFFSET_X (ART_WIDTH + SIDE_BORDER + BLOCK_SPACE_X)
76#define BLOCK_OFFSET_Y 74
78#define BLOCK_HEIGHT 40
81#define HILITE_BORDER 4
82#define XTRALITE_TRIM 42
92#define MID_SOUND "sound\\bong.wav"
93#define PICK_SOUND "sound\\pick.wav"
94#define LOSE_SOUND "sound\\buzzer.wav"
95#define WIN_SOUND "sound\\SOUNDWON.WAV"
97#define GAME_THEME "sound\\beacon.mid"
98#define RULES_WAV "sound\\BEACON.WAV"
99#define RULES_TEXT "BEACON.TXT"
102#define MAINSCREEN "art\\BEACBRDR.BMP"
103#define BEAMSCREEN "art\\BEAMS3.BMP"
106#define DATA_FILE "BEACON.DAT"
107#define MAX_FILE_LENGTH 20
110#define NEWGAME_LOCATION_X 15
111#define NEWGAME_LOCATION_Y 0
112#define NEWGAME_WIDTH 217
113#define NEWGAME_HEIGHT 20
124 unsigned int nColorIndex;
125 } colorBlock[NUM_BUTTONS];
132 void DrawBeams(
CDC *pDC);
134 void CheckUnderBeam();
135 void SetBeamEntries(
CDC *pDC);
136 static void DrawPart(
CDC *pDC,
CPoint Src,
CPoint Dst,
int nWidth,
int nHeight);
137 static bool CompareColors(
CDC *pDC,
CPoint point);
138 static bool UnderLighthouse(
CPoint point);
139 static bool InPictureSquare(
CPoint point);
141 bool LoadArtWork(
CDC *pDC);
145 void OnSoundNotify(CSound *pSound);
148 virtual bool OnCommand(WPARAM wParam, LPARAM lParam)
override;
151 afx_msg
void OnPaint();
152 afx_msg
void OnChar(
unsigned int nChar,
unsigned int nRepCnt,
unsigned int nFlags);
153 afx_msg
void OnSysKeyDown(
unsigned int nChar,
unsigned int nRepCnt,
unsigned int nFlags);
154 afx_msg
void OnKeyDown(
unsigned int nChar,
unsigned int nRepCnt,
unsigned int nFlags);
155 afx_msg
void OnTimer(uintptr nIDEvent);
156 afx_msg
void OnLButtonDown(
unsigned int nFlags,
CPoint point);
157 afx_msg
void OnLButtonUp(
unsigned int nFlags,
CPoint point);
158 afx_msg
void OnMouseMove(
unsigned int nFlags,
CPoint point);
159 afx_msg
void OnClose();
160 afx_msg LRESULT OnMCINotify(WPARAM, LPARAM);
161 afx_msg LRESULT OnMMIONotify(WPARAM, LPARAM);
164 DECLARE_MESSAGE_MAP()
Definition: afxwin.h:1532
Definition: atltypes.h:79
Definition: atltypes.h:131