22#ifndef HODJNPODJ_FUGE_FUGE_H
23#define HODJNPODJ_FUGE_FUGE_H
25#include "bagel/afxwin.h"
26#include "bagel/hodjnpodj/hnplibs/stdinc.h"
27#include "bagel/hodjnpodj/hnplibs/sprite.h"
28#include "bagel/hodjnpodj/hnplibs/text.h"
29#include "bagel/boflib/error.h"
30#include "bagel/hodjnpodj/libs/vector.h"
31#include "bagel/hodjnpodj/hnplibs/button.h"
32#include "bagel/boflib/sound.h"
39#define BRICKS_PER_ROW 16
40#define N_BRICKS (N_ROWS*BRICKS_PER_ROW)
47 void LoadIniSettings();
55 void HandleError(ERROR_CODE);
56 void RealignVectors();
57 ERROR_CODE LoadMasterSprites();
58 void ReleaseMasterSprites();
59 ERROR_CODE LoadMasterSounds();
60 void ReleaseMasterSounds();
61 ERROR_CODE LoadNewPaddle(
int);
62 void InitializeJoystick();
63 void RepaintSpriteList(
CDC *);
64 void PaintBricks(
CDC *);
71 void PaintPaddle(
bool);
75 void EraseBrick(
CDC *,
int);
78 void BallvsBrick(
double);
80 virtual bool OnCommand(WPARAM wParam, LPARAM lParam)
override;
81 long OnJoyStick(
unsigned int,
long);
83 void OnTimer(uintptr);
84 void OnMouseMove(
unsigned int,
CPoint);
85 void OnRButtonUp(
unsigned int,
CPoint);
86 void OnLButtonDown(
unsigned int,
CPoint);
87 void OnSysChar(
unsigned int,
unsigned int,
unsigned int);
88 void OnSysKeyDown(
unsigned int,
unsigned int,
unsigned int);
89 void OnKeyDown(
unsigned int,
unsigned int,
unsigned int);
90 void OnActivate(
unsigned int,
CWnd *,
bool)
override;
91 LRESULT OnMCINotify(WPARAM, LPARAM);
92 LRESULT OnMMIONotify(WPARAM, LPARAM);
93 void OnSoundNotify(CSound *);
98 bool m_bBrickVisible[N_BRICKS] = {};
100 CRect m_rNewGameButton;
108 CSound *m_pSoundTrack =
nullptr;
110 char * m_pBrickSound =
nullptr;
111 char * m_pWallSound =
nullptr;
112 char * m_pPaddleSound =
nullptr;
113 char * m_pExtraLifeSound =
nullptr;
114 HANDLE m_hBrickRes =
nullptr;
115 HANDLE m_hWallRes =
nullptr;
116 HANDLE m_hPaddleRes =
nullptr;
117 HANDLE m_hExtraLifeRes =
nullptr;
119 int m_nInitNumBalls = 0;
120 int m_nInitStartLevel = 0;
121 int m_nInitBallSpeed = 0;
122 int m_nInitPaddleSize = 0;
123 int m_nGForceFactor = 0;
125 double m_fTurboBoost = 0;
127 long m_lExtraLifeScore = 0;
132 int m_nBallSpeed = 0;
134 int m_nPaddleCelIndex = 0;
137 bool m_bMovingPaddle =
false;
138 bool m_bGameActive =
false;
139 bool m_bPause =
false;
140 bool m_bIgnoreScrollClick =
false;
141 bool m_bPaddleHit =
false;
142 bool m_bOutterWall =
false;
143 bool m_bJoyActive =
false;
144 bool m_bBallOnPaddle =
false;
Definition: afxwin.h:1532
Definition: atltypes.h:79
Definition: atltypes.h:131
Definition: afxwin.h:1141