22#ifndef HODJNPODJ_PACKRAT_PACKRAT_H
23#define HODJNPODJ_PACKRAT_PACKRAT_H
27#include "bagel/boflib/sound.h"
28#include "bagel/hodjnpodj/packrat/globals.h"
29#include "bagel/hodjnpodj/packrat/resource.h"
30#include "bagel/hodjnpodj/hnplibs/dibdoc.h"
31#include "bagel/hodjnpodj/hnplibs/gamedll.h"
32#include "bagel/hodjnpodj/hnplibs/cbofdlg.h"
33#include "bagel/hodjnpodj/hnplibs/mainmenu.h"
34#include "bagel/hodjnpodj/hnplibs/sprite.h"
35#include "bagel/hodjnpodj/hnplibs/button.h"
36#include "bagel/hodjnpodj/hnplibs/rules.h"
37#include "bagel/hodjnpodj/hnplibs/text.h"
38#include "bagel/hodjnpodj/hnplibs/bitmaps.h"
51#define RULESFILE "PACKRAT.TXT"
52#define RULES_WAV "sound\\PACKRAT.WAV"
55#define GAME_THEME "sound\\PACRAT.MID"
56#define DEAD_WAV "sound\\TAPS.WAV"
57#define DOODAD_WAV "sound\\DOODAD.WAV"
58#define LEVEL_WAV "sound\\APPLAUSE.WAV"
59#define LASTLEV_WAV "sound\\WIN45.WAV"
61#define OPTSCROLL "ART\\OPTSCRL.BMP"
64#define OPTION_WIDTH 146
65#define OPTION_HEIGHT 23
66#define OPTION_LEFT 246
77 int m_nBadGuySpeed = 0;
78 int m_nPlayerSpeed = 0;
83 HWND m_hCallAppWnd =
nullptr;
84 LPGAMESTRUCT m_lpGameStruct =
nullptr;
85 bool m_bMouseCaptured =
false;
86 int *m_anMazeArray = 0;
87 int m_nPDirection = 0;
88 POINT m_ptCurrPLocInGrid = { 0, 0 };
89 POINT m_ptCurrentPPos = { 0, 0 };
90 int m_anBDirection[4] = { 0 };
91 int m_nNumberOfMoves = 0;
92 int m_nBDirection = 0;
93 POINT m_aptCurrBLocInGrid[4] = {
94 { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }
96 POINT m_aptCurrentBPos[4] = {
97 { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }
99 int m_nNumberOfObjectsLeft = 0;
103 bool m_bSuspend =
false;
118 static void ReleaseResources();
119 static void FlushInputEvents();
126 void PickUpSuperObject();
127 void SetNewPlayerPos();
128 bool SetNewBadGuyPos(
int,
bool);
131 bool PlayerKilled(
int);
132 void KillPlayer(
bool =
false);
133 void KillBadGuy(
int,
bool =
false);
134 void PaintObjects(
int = 1);
137 bool CheckMessages();
138 void OnSoundNotify(CSound *pSound);
141 virtual bool OnCommand(WPARAM wParam, LPARAM lParam)
override;
144 afx_msg
void OnPaint();
145 afx_msg
void OnClose();
146 afx_msg
void OnDestroy();
147 afx_msg
void OnTimer(uintptr);
148 afx_msg
void OnLButtonDown(
unsigned int,
CPoint);
149 afx_msg
void OnLButtonUp(
unsigned int,
CPoint);
150 afx_msg
void OnRButtonDown(
unsigned int,
CPoint);
151 afx_msg
void OnRButtonUp(
unsigned int,
CPoint);
152 afx_msg
void OnMouseMove(
unsigned int,
CPoint);
153 afx_msg
void OnKeyDown(
unsigned int,
unsigned int,
unsigned int);
154 afx_msg
void OnSysKeyDown(
unsigned int,
unsigned int,
unsigned int);
156 afx_msg
bool OnEraseBkgnd(
CDC *);
157 afx_msg
void OnActivate(
unsigned int nState,
CWnd *pWndOther,
bool bMinimized)
override;
158 afx_msg LRESULT OnMCINotify(WPARAM, LPARAM);
159 afx_msg LRESULT OnMMIONotify(WPARAM, LPARAM);
162 DECLARE_MESSAGE_MAP()
Definition: afxwin.h:1532
Definition: atltypes.h:79
Definition: atltypes.h:131
Definition: afxwin.h:1141
Definition: minwindef.h:161