ScummVM API documentation
dialogs.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef HODJNPODJ_PACKRAT_DIALOGS_H
23#define HODJNPODJ_PACKRAT_DIALOGS_H
24
25#include "bagel/hodjnpodj/hnplibs/cbofdlg.h"
26#include "bagel/hodjnpodj/packrat/packrat.h"
27
28namespace Bagel {
29namespace HodjNPodj {
30namespace Packrat {
31
32#define LEVELMAX 36
33#define LIVESMAX 5
34#define LEVELMIN 1
35#define LIVESMIN 1
36
40class CPackRatOptDlg : public CBmpDialog {
41private:
42 int m_nLives = 0;
43 int m_nLevel = 0;
44 CRect rectDisplayLevel;
45 CRect rectDisplayLives;
46
47public:
48 CPackRatOptDlg(CWnd* pParent = nullptr, CPalette *pPalette = nullptr, unsigned int = IDD_MINIOPTIONS_DIALOG);
49 void SetInitialOptions(int = 1, int = 1); // Sets the private members
50 void ClearDialogImage();
51 bool OnInitDialog() override;
52
53protected:
54 //{{AFX_MSG(COptions)
55 virtual void OnCancel() override;
56 virtual void OnOK() override;
57 virtual bool OnCommand(WPARAM, LPARAM) override;
58 afx_msg void OnHScroll(unsigned int nSBCode, unsigned int nPos, CScrollBar* pScrollBar);
59 afx_msg void OnPaint();
60 afx_msg void OnDestroy();
61 //}}AFX_MSG
62 DECLARE_MESSAGE_MAP()
63};
64
68class CMsgDlg : public CBmpDialog {
69private:
70 int m_nWhichMsg = 0;
71 long m_lCurrentScore = 0;
72 int m_nLevel = 0;
73
74public:
75 CMsgDlg(CWnd* pParent = nullptr, CPalette *pPalette = nullptr, unsigned int = IDD_MESSAGEBOX);
76 void SetInitialOptions(int, long, int = 0); // Sets the private members
77 void ClearDialogImage();
78 bool OnInitDialog() override;
79
80protected:
81 //{{AFX_MSG(COptions)
82 virtual void OnCancel() override;
83 virtual void OnOK() override;
84 virtual bool OnCommand(WPARAM, LPARAM) override;
85 afx_msg void OnPaint();
86 afx_msg void OnDestroy();
87 //}}AFX_MSG
88 DECLARE_MESSAGE_MAP()
89};
90
91} // namespace Packrat
92} // namespace HodjNPodj
93} // namespace Bagel
94
95#endif
Definition: cbofdlg.h:31
Definition: dialogs.h:68
Definition: afxwin.h:667
Definition: atltypes.h:131
Definition: afxwin.h:1765
Definition: afxwin.h:1141