Initial commit

This commit is contained in:
2026-02-02 04:50:13 +01:00
commit 5b11698731
22592 changed files with 7677434 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef HODJNPODJ_MAZEDOOM_GLOBALS_H
#define HODJNPODJ_MAZEDOOM_GLOBALS_H
namespace Bagel {
namespace HodjNPodj {
namespace MazeDoom {
// Main Window positioning constants
#define GAME_WIDTH 640
#define GAME_HEIGHT 480
// Scroll button size and positioning information
#define IDC_SCROLL 850
#define SCROLL_BUTTON_X 250
#define SCROLL_BUTTON_Y 0
#define SCROLL_BUTTON_DX 140
#define SCROLL_BUTTON_DY 23
} // namespace MazeDoom
} // namespace HodjNPodj
} // namespace Bagel
#endif

View File

@@ -0,0 +1,102 @@
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#include "bagel/afxwin.h"
#include "bagel/hodjnpodj/hnplibs/gamedll.h"
#include "bagel/hodjnpodj/mazedoom/resource.h"
#include "bagel/hodjnpodj/mazedoom/mod.h"
namespace Bagel {
namespace HodjNPodj {
namespace MazeDoom {
HINSTANCE hDLLInst;
HINSTANCE hExeInst;
LPGAMESTRUCT pGameInfo;
// global the pointer to the your game's main window
HWND ghParentWnd;
/////////////////////////////////////////////////////////////////////////////
// Public C interface
/*****************************************************************
*
* RunMaze
*
* FUNCTIONAL DESCRIPTION:
*
* This is the API function for the DLL. It is what the calling app
* calls to invoke poker
*
* FORMAL PARAMETERS:
*
* hParentWnd, lpGameInfo
*
* IMPLICIT INPUT PARAMETERS:
*
* n/a
*
* IMPLICIT OUTPUT PARAMETERS:
*
* n/a
*
* RETURN VALUE:
*
* n/a
*
****************************************************************/
HWND FAR PASCAL RunMaze(HWND hParentWnd, LPGAMESTRUCT lpGameInfo) {
CMainWindow *pMain;
//TEMP
// lpGameInfo->bPlayingMetagame = true;
// lpGameInfo->nSkillLevel = SKILLLEVEL_MEDIUM;
//TEMP
pGameInfo = lpGameInfo;
// invoke your game here by creating a pGame for your main window
// look at the InitInstance for your game for this
ghParentWnd = hParentWnd;
if ((pMain = new CMainWindow) != nullptr) {
pMain->ShowWindow(SW_SHOWNORMAL);
pMain->UpdateWindow();
pMain->SetActiveWindow();
}
// these must be set in this function
hDLLInst = (HINSTANCE)GetWindowWord(pMain->m_hWnd, GWW_HINSTANCE);
hExeInst = (HINSTANCE)GetWindowWord(hParentWnd, GWW_HINSTANCE);
return pMain->m_hWnd; // return the m_hWnd of your main game window
}
} // namespace MazeDoom
} // namespace HodjNPodj
} // namespace Bagel

View File

@@ -0,0 +1,35 @@
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef HODJNPODJ_MAZEDOOM_GAMEDLL_H
#define HODJNPODJ_MAZEDOOM_GAMEDLL_H
namespace Bagel {
namespace HodjNPodj {
namespace MazeDoom {
extern HWND FAR PASCAL RunMaze(HWND hParentWnd, LPGAMESTRUCT lpGameInfo);
} // namespace MazeDoom
} // namespace HodjNPodj
} // namespace Bagel
#endif

View File

@@ -0,0 +1,72 @@
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef HODJNPODJ_MAZEDOOM_MAZEGEN_H
#define HODJNPODJ_MAZEDOOM_MAZEGEN_H
#include "common/scummsys.h"
namespace Bagel {
namespace HodjNPodj {
namespace MazeDoom {
#define MAX_MAZE_SIZE_X 12
#define MAX_MAZE_SIZE_Y 9
#define MOVE_LIST_SIZE (MAX_MAZE_SIZE_X * MAX_MAZE_SIZE_Y)
#define WALL_TOP 0x8000
#define WALL_RIGHT 0x4000
#define WALL_BOTTOM 0x2000
#define WALL_LEFT 0x1000
#define DOOR_IN_TOP 0x800
#define DOOR_IN_RIGHT 0x400
#define DOOR_IN_BOTTOM 0x200
#define DOOR_IN_LEFT 0x100
#define DOOR_IN_ANY 0xF00
#define DOOR_OUT_TOP 0x80
#define DOOR_OUT_RIGHT 0x40
#define DOOR_OUT_BOTTOM 0x20
#define DOOR_OUT_LEFT 0x10
#define START_SQUARE 0x2
#define END_SQUARE 0x1
static unsigned short _maze[MAX_MAZE_SIZE_X][MAX_MAZE_SIZE_Y];
static struct {
uint8 x;
uint8 y;
uint8 dir;
} _moveList[MOVE_LIST_SIZE];
static int _mazeSizeX, _mazeSizeY;
static int _sqNum, _curSqX, _curSqY;
static int _startX, _startY, _endX, _endY;
} // namespace MazeDoom
} // namespace HodjNPodj
} // namespace Bagel
#endif

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,151 @@
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef HODJNPODJ_MAZEDOOM_MOD_H
#define HODJNPODJ_MAZEDOOM_MOD_H
#include "bagel/boflib/sound.h"
namespace Bagel {
namespace HodjNPodj {
namespace MazeDoom {
#define ABS(a) ( (a > 0) ? (a) : (-a) )
// Border info
#define SIDE_BORDER 20
#define TOP_BORDER 28
#define BOTTOM_BORDER 16
#define HILITE_BORDER 3
// Dimensions constants
#define ART_WIDTH 600
#define ART_HEIGHT 432
#define SQ_SIZE_X 24
#define SQ_SIZE_Y 24
#define EDGE_SIZE 5
// Starting value defaults
#define MAX_DIFFICULTY 10 //8
#define MIN_DIFFICULTY 1 //0
// Timer constants
#define MIN_TIME 15 // 15 Seconds
#define MAX_TIME 180 // 180 Seconds = 3 minute max
#define TIMER_MIN 0 // Increment scrollbar in steps of 15 Secs
#define TIMER_MAX 10 // if Time > MAX_TIME, No Time Limit
#define NUM_COLUMNS 25
#define NUM_ROWS 19
#define NUM_NEIGHBORS 9 // The "clump" area is 3 X 3 grid spaces
#define NUM_TRAP_MAPS 7 // There are seven trap icons available
#define MIN_TRAPS 4
#define NUM_CELS 8
#define PATH 0
#define WALL 1
#define TRAP 2
#define START 3
#define EXIT 4
#define HODJ 0
#define PODJ 4
// Timer stuff
#define GAME_TIMER 1
#define CLICK_TIME 1000 // Every Second, update timer clock
// Rules files
#define RULES_TEXT "MAZEOD.TXT"
#define RULES_WAV ".\\SOUND\\MAZEOD.WAV"
// Sound files
#define WIN_SOUND ".\\sound\\fanfare2.wav"
#define LOSE_SOUND ".\\sound\\buzzer.wav"
#define HIT_SOUND ".\\sound\\thud.wav"
#define TRAP_SOUND ".\\sound\\boing.wav"
#define GAME_THEME ".\\sound\\mazeod.mid"
// Backdrop bitmaps
#define MAINSCREEN ".\\ART\\DOOM2.BMP"
// New Game button area
#define NEWGAME_LOCATION_X 15
#define NEWGAME_LOCATION_Y 0
#define NEWGAME_WIDTH 217
#define NEWGAME_HEIGHT 20
// Time Display area
#define TIME_LOCATION_X 420
#define TIME_LOCATION_Y 4
#define TIME_WIDTH 195
#define TIME_HEIGHT 16
/////////////////////////////////////////////////////////////////////////////
// CMainWindow:
// See game.cpp for the code to the member functions and the message map.
//
class CMainWindow : public CFrameWnd {
public:
CMainWindow();
void MovePlayer(CPoint point);
void GetNewCursor(); // Load up the new directional cursor
void NewGame(); // Set up a new game & start the timer
//added data members:
void SplashScreen();
private:
void OnSoundNotify(CSound *pSound);
protected:
virtual bool OnCommand(WPARAM wParam, LPARAM lParam) override;
//{{AFX_MSG( CMainWindow )
afx_msg void OnPaint();
afx_msg void OnChar(unsigned int nChar, unsigned int nRepCnt, unsigned int nFlags);
afx_msg void OnSysChar(unsigned int nChar, unsigned int nRepCnt, unsigned int nFlags);
afx_msg void OnSysKeyDown(unsigned int nChar, unsigned int nRepCnt, unsigned int nFlags);
afx_msg void OnKeyDown(unsigned int nChar, unsigned int nRepCnt, unsigned int nFlags);
afx_msg void OnTimer(uintptr nIDEvent);
afx_msg void OnLButtonDown(unsigned int nFlags, CPoint point);
afx_msg void OnRButtonDown(unsigned int nFlags, CPoint point);
afx_msg void OnLButtonUp(unsigned int nFlags, CPoint point);
afx_msg void OnMouseMove(unsigned int nFlags, CPoint point);
afx_msg void OnClose();
afx_msg LRESULT OnMCINotify(WPARAM, LPARAM);
afx_msg LRESULT OnMMIONotify(WPARAM, LPARAM);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
} // namespace MazeDoom
} // namespace HodjNPodj
} // namespace Bagel
#endif

View File

@@ -0,0 +1,340 @@
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#include "bagel/hodjnpodj/hnplibs/stdafx.h"
#include "bagel/hodjnpodj/hnplibs/button.h"
#include "bagel/hodjnpodj/mazedoom/globals.h"
#include "bagel/hodjnpodj/mazedoom/resource.h"
#include "bagel/hodjnpodj/mazedoom/mod.h"
#include "bagel/hodjnpodj/mazedoom/optndlg.h"
#include "bagel/hodjnpodj/hnplibs/text.h"
namespace Bagel {
namespace HodjNPodj {
namespace MazeDoom {
static CPalette *pSubOptionsPalette;
static CColorButton *pOKButton = nullptr; // OKAY button on scroll
static CColorButton *pCancelButton = nullptr; // Cancel button on scroll
CText *m_pTimeLeft = nullptr;
CText *m_pDiffTitleText = nullptr;
CText *m_pDifficultyText = nullptr;
CText *m_pTimerText = nullptr;
int m_nTimeScale[10] = {30, 45, 60, 75, 90, 120, 180, 240, 300, 600};
/////////////////////////////////////////////////////////////////////////////
// COptnDlg dialog
COptnDlg::COptnDlg(CWnd* pParent, CPalette* pPalette)
: CBmpDialog(pParent, pPalette, IDD_SUBOPTIONS, ".\\ART\\SSCROLL.BMP") {
//{{AFX_DATA_INIT(COptnDlg)
_time = MIN_TIME;
_difficulty = MIN_DIFFICULTY;
m_pTimeLeft = nullptr;
m_pTimerText = nullptr;
m_pDifficultyText = nullptr;
m_pDiffTitleText = nullptr;
pSubOptionsPalette = pPalette;
//}}AFX_DATA_INIT
}
COptnDlg::~COptnDlg() {
if (m_pTimeLeft != nullptr)
delete m_pTimeLeft;
if (m_pTimerText != nullptr)
delete m_pTimerText;
if (m_pDiffTitleText != nullptr)
delete m_pDiffTitleText;
if (m_pDifficultyText != nullptr)
delete m_pDifficultyText;
CBmpDialog::OnDestroy();
}
void COptnDlg::DoDataExchange(CDataExchange* pDX) {
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(COptnDlg)
DDX_Control(pDX, IDC_DIFFICULTY, m_ScrollDifficulty);
DDX_Control(pDX, IDC_TIMELIMIT, m_ScrollTime);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(COptnDlg, CDialog)
//{{AFX_MSG_MAP(COptnDlg)
ON_WM_HSCROLL()
ON_WM_CREATE()
ON_WM_ERASEBKGND()
ON_WM_PAINT()
ON_WM_DESTROY()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// COptnDlg message handlers
int COptnDlg::OnCreate(LPCREATESTRUCT lpCreateStruct) {
if (CBmpDialog::OnCreate(lpCreateStruct) == -1)
return -1;
return 0;
}
bool COptnDlg::OnInitDialog() {
CBmpDialog::OnInitDialog();
CDC *pDC;
CRect statRect;
int i;
mDifficultyTable[0] = "Total Wussy";
mDifficultyTable[1] = "Big Sissy";
mDifficultyTable[2] = "Major Wimp";
mDifficultyTable[3] = "Minor Wimp";
mDifficultyTable[4] = "Majorly Minor Miner";
mDifficultyTable[5] = "Minor Miner";
mDifficultyTable[6] = "Miner";
mDifficultyTable[7] = "Major Miner";
mDifficultyTable[8] = "Enchantemite Miner";
mDifficultyTable[9] = "Studly Enchantemite Miner";
pDC = GetDC();
statRect.SetRect(LEFT_SIDE, 25, LEFT_SIDE + 70, 40);
if ((m_pTimeLeft = new CText()) != nullptr) {
(*m_pTimeLeft).SetupText(pDC, pSubOptionsPalette, &statRect, JUSTIFY_LEFT);
}
statRect.SetRect(LEFT_SIDE, 45, LEFT_SIDE + 80, 70);
if ((m_pDiffTitleText = new CText()) != nullptr) {
(*m_pDiffTitleText).SetupText(pDC, pSubOptionsPalette, &statRect, JUSTIFY_LEFT);
}
statRect.SetRect(LEFT_SIDE, 65, LEFT_SIDE + 170, 80);
if ((m_pDifficultyText = new CText()) != nullptr) {
(*m_pDifficultyText).SetupText(pDC, pSubOptionsPalette, &statRect, JUSTIFY_LEFT);
}
m_ScrollDifficulty.SetScrollRange(MIN_DIFFICULTY, MAX_DIFFICULTY, 0); //...last element is Max - 1
m_ScrollDifficulty.SetScrollPos(_difficulty, true);
statRect.SetRect(LEFT_SIDE, 115, LEFT_SIDE + 100, 130);
if ((m_pTimerText = new CText()) != nullptr) {
(*m_pTimerText).SetupText(pDC, pSubOptionsPalette, &statRect, JUSTIFY_LEFT);
}
m_ScrollTime.SetScrollRange(TIMER_MIN, TIMER_MAX - 1, 0);
if (_time == 0) _time = m_nTimeScale[TIMER_MAX - 1];
for (i = 0; i < TIMER_MAX; i++) {
if (m_nTimeScale[i] == _time)
m_ScrollTime.SetScrollPos(i, true);
}
ReleaseDC(pDC);
if ((pOKButton = new CColorButton) != nullptr) { // build a color QUIT button to let us exit
(*pOKButton).SetPalette(pSubOptionsPalette); // set the palette to use
(*pOKButton).SetControl(IDOK, this); // tie to the dialog control
}
if ((pCancelButton = new CColorButton) != nullptr) { // build a color QUIT button to let us exit
(*pCancelButton).SetPalette(pSubOptionsPalette); // set the palette to use
(*pCancelButton).SetControl(IDCANCEL, this); // tie to the dialog control
}
return true; // return true unless you set the focus to a control
}
bool COptnDlg::OnEraseBkgnd(CDC *pDC) {
return true;
}
void COptnDlg::OnDestroy() {
CBmpDialog::OnDestroy();
}
void COptnDlg::OnHScroll(unsigned int nSBCode, unsigned int nPos, CScrollBar* pScrollBar) {
int pMin,
pMax;
int OldPos = pScrollBar->GetScrollPos();
int NewPos = OldPos;
pScrollBar->GetScrollRange(&pMin, &pMax);
switch (nSBCode) {
case SB_LINERIGHT:
case SB_PAGERIGHT:
NewPos++; // Increment by one
break;
case SB_RIGHT:
NewPos = pMax;
break;
case SB_LINELEFT:
case SB_PAGELEFT:
NewPos--;
break;
case SB_LEFT:
NewPos = pMin;
break;
case SB_THUMBPOSITION:
case SB_THUMBTRACK:
NewPos = nPos;
break;
}
if (NewPos < pMin) NewPos = pMin;
if (NewPos > pMax) NewPos = pMax;
if (NewPos != OldPos) { //To prevent "flicker"
(*pScrollBar).SetScrollPos(NewPos, true); //...only update when
} //...changed
UpdateScrollbars();
CDialog::OnHScroll(nSBCode, NewPos, pScrollBar);
}
/*****************************************************************
*
* UpdateScrollbars
*
* FUNCTIONAL DESCRIPTION:
*
* Updates data adjusted with scrollbars
*
* FORMAL PARAMETERS:
*
* none
*
* IMPLICIT INPUT PARAMETERS:
*
* CScrollbar pScrollTime, pScrollColumns, pScrollRows
*
* IMPLICIT OUTPUT PARAMETERS:
*
* int _time, m_nNumParts, m_nColumns, m_nRows
*
* RETURN VALUE:
*
* void
*
****************************************************************/
void COptnDlg::UpdateScrollbars() {
int OldValue;
CDC *pDC;
char msg[64];
int m_nMins, m_nSecs;
pDC = GetDC();
OldValue = _time;
_time = m_nTimeScale[m_ScrollTime.GetScrollPos()];
if (OldValue != _time) {
if (_time == m_nTimeScale[TIMER_MAX - 1])
Common::sprintf_s(msg, "Time Limit: None");
else {
m_nMins = _time / 60;
m_nSecs = _time % 60;
Common::sprintf_s(msg, "Time Limit: %02d:%02d", m_nMins, m_nSecs);
}
(*m_pTimerText).DisplayString(pDC, msg, 14, TEXT_BOLD, RGB(0, 0, 0));
}
OldValue = _difficulty;
_difficulty = m_ScrollDifficulty.GetScrollPos();
if (OldValue != _difficulty) {
Common::sprintf_s(msg, "%s", mDifficultyTable[_difficulty - 1].c_str());
(*m_pDifficultyText).DisplayString(pDC, msg, 14, TEXT_BOLD, RGB(0, 0, 0));
}
ReleaseDC(pDC);
}
void COptnDlg::OnOK() {
if (_time == m_nTimeScale[TIMER_MAX - 1]) _time = 0;
ClearDialogImage();
EndDialog(IDOK);
}
void COptnDlg::OnCancel() {
ClearDialogImage();
EndDialog(0);
}
void COptnDlg::OnPaint() {
CDC *pDC;
char msg[64];
int m_nMins, m_nSecs;
CBmpDialog::OnPaint();
pDC = GetDC();
Common::sprintf_s(msg, "Time: %02d:%02d", _minutes, _seconds);
(*m_pTimeLeft).DisplayString(pDC, msg, 14, TEXT_BOLD, RGB(0, 0, 0));
Common::sprintf_s(msg, "Level:");
(*m_pDiffTitleText).DisplayString(pDC, msg, 14, TEXT_BOLD, RGB(0, 0, 0));
Common::sprintf_s(msg, "%s", mDifficultyTable[_difficulty - 1].c_str());
(*m_pDifficultyText).DisplayString(pDC, msg, 14, TEXT_BOLD, RGB(0, 0, 0));
if (_time == m_nTimeScale[TIMER_MAX - 1])
Common::sprintf_s(msg, "Time Limit: None");
else {
m_nMins = _time / 60;
m_nSecs = _time % 60;
Common::sprintf_s(msg, "Time Limit: %02d:%02d", m_nMins, m_nSecs);
}
(*m_pTimerText).DisplayString(pDC, msg, 14, TEXT_BOLD, RGB(0, 0, 0));
ReleaseDC(pDC);
}
void COptnDlg::ClearDialogImage() {
if (pOKButton != nullptr) { // release the button
delete pOKButton;
pOKButton = nullptr;
}
if (pCancelButton != nullptr) { // release the button
delete pCancelButton;
pCancelButton = nullptr;
}
ValidateRect(nullptr);
}
} // namespace MazeDoom
} // namespace HodjNPodj
} // namespace Bagel

View File

@@ -0,0 +1,81 @@
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef HODJNPODJ_MAZEDOOM_OPTNDLG_H
#define HODJNPODJ_MAZEDOOM_OPTNDLG_H
#include "bagel/hodjnpodj/hnplibs/cbofdlg.h"
#include "bagel/hodjnpodj/hnplibs/text.h"
#include "bagel/hodjnpodj/mazedoom/mod.h"
#include "bagel/hodjnpodj/mazedoom/resource.h"
namespace Bagel {
namespace HodjNPodj {
namespace MazeDoom {
#define LEFT_SIDE 30
#define OPTIONS_COLOR RGB(0, 0, 0) // Color of the stats info CText
/////////////////////////////////////////////////////////////////////////////
// COptnDlg dialog
class COptnDlg : public CBmpDialog {
public:
COptnDlg(CWnd *pParent = nullptr, CPalette *pPalette = nullptr);
~COptnDlg();
void UpdateScrollbars();
void ClearDialogImage();
// Dialog Data
//{{AFX_DATA(COptnDlg)
enum { IDD = IDD_SUBOPTIONS };
CScrollBar m_ScrollTime;
CScrollBar m_ScrollDifficulty;
int _difficulty = 0;
int _time = 0;
int _seconds = 0;
int _minutes = 0;
CString mDifficultyTable [MAX_DIFFICULTY];
//}}AFX_DATA
// Implementation
protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support
// Generated message map functions
//{{AFX_MSG(COptnDlg)
virtual bool OnInitDialog() override;
afx_msg void OnHScroll(unsigned int nSBCode, unsigned int nPos, CScrollBar* pScrollBar);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg bool OnEraseBkgnd(CDC *pDC);
virtual void OnOK() override;
virtual void OnCancel() override;
afx_msg void OnPaint();
afx_msg void OnDestroy();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
} // namespace MazeDoom
} // namespace HodjNPodj
} // namespace Bagel
#endif

View File

@@ -0,0 +1,58 @@
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef HODJNPODJ_MAZEDOOM_RESOURCE_H
#define HODJNPODJ_MAZEDOOM_RESOURCE_H
namespace Bagel {
namespace HodjNPodj {
namespace MazeDoom {
#define IDC_MOD_DNARROW 116
#define IDC_MOD_UPARROW 117
#define IDC_MOD_LFARROW 118
#define IDC_MOD_RTARROW 119
#define IDC_MOD_NOARROW 120
#define IDD_SUBOPTIONS 115
#define IDB_PARTS 301
#define IDB_HODJ_UP 330
#define IDB_HODJ_RIGHT 331
#define IDB_HODJ_DOWN 332
#define IDB_HODJ_LEFT 333
#define IDB_PODJ_UP 334
#define IDB_PODJ_RIGHT 335
#define IDB_PODJ_DOWN 336
#define IDB_PODJ_LEFT 337
#define IDC_RULES 1002
#define IDC_DIFFICULTY 1021
#define IDC_TIMELIMIT 1022
} // namespace MazeDoom
} // namespace HodjNPodj
} // namespace Bagel
#endif