ScummVM API documentation
mnkopt.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_MANKALA_MNKOPT_H
23#define HODJNPODJ_MANKALA_MNKOPT_H
24
25#include "bagel/hodjnpodj/hnplibs/cbofdlg.h"
26#include "bagel/hodjnpodj/hnplibs/cmessbox.h"
27#include "bagel/hodjnpodj/hnplibs/mainmenu.h"
28#include "bagel/hodjnpodj/hnplibs/rules.h"
29#include "bagel/hodjnpodj/mankala/mnk.h"
30#include "bagel/hodjnpodj/mankala/resource.h"
31
32namespace Bagel {
33namespace HodjNPodj {
34namespace Mankala {
35
36#define OPTIONS_COLOR RGB(0, 0, 0) // Color of the stats info CText
37#define LEFT_SIDE 25
38#define NUM_LEVELS 5// (MAXSTRENGTH - MINSTRENGTH + 1) // 5- 1 + 1 = 5
39
41// CMnkOpt dialog
42
43class CMnkOpt : public CDialog {
44// Construction
45public:
46 CMnkOpt(CWnd* pParent = nullptr); // standard constructor
47 ~CMnkOpt(); // destructor
48
49// Dialog Data
50 //{{AFX_DATA(CMnkOpt)
51 enum { IDD = IDD_MNK_DIALOG };
52 int m_iLevel0;
53 int m_iLevel1;
54 int m_iPlayer0;
55 int m_iPlayer1;
56 int m_iStartStones;
57 int m_iTableStones;
58 bool m_bInitData;
59 int m_iMaxDepth0;
60 int m_iMaxDepth1;
61 bool m_bDumpMoves;
62 bool m_bDumpPopulate;
63 bool m_bDumpTree;
64 int m_iCapDepth0;
65 int m_iCapDepth1;
66 //}}AFX_DATA
67
68// Implementation
69protected:
70 virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support
71
72 // Generated message map functions
73 //{{AFX_MSG(CMnkOpt)
74 // NOTE: the ClassWizard will add member functions here
75 //}}AFX_MSG
76 DECLARE_MESSAGE_MAP()
77};
78
80// CMnkUsr dialog
81
82class CMnkUsr : public CBmpDialog {
83// Construction
84public:
85 CMnkUsr(CWnd *xpParent = nullptr,
86 CPalette *xpPalette = nullptr, unsigned int nID = IDD_MNK_USER) ;
87 ~CMnkUsr(); // destructor
88
89 CPalette *m_xpGamePalette = nullptr;
90
91 CScrollBar *m_xpUScrShell = nullptr, *m_xpUScrStrength = nullptr;
92 void UpdateScrollbars();
93
94// Dialog Data
95 //{{AFX_DATA(CMnkUsr)
96 enum { IDD = IDD_MNK_USER };
97 int m_iUShells = 0;
98 int m_iUStrength = 0;
99 CString mLevelTable [NUM_LEVELS];
100 //}}AFX_DATA
101
102// Implementation
103protected:
104 virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support
105 virtual bool OnCommand(WPARAM, LPARAM) override;
106 void ClearDialogImage();
107
108
109 // Generated message map functions
110 //{{AFX_MSG(CMnkUsr)
111 afx_msg void OnHScroll(unsigned int nSBCode, unsigned int nPos, CScrollBar* pScrollBar);
112 virtual bool OnInitDialog() override;
113 afx_msg void OnPaint();
114// afx_msg void OnKillfocusUShells();
115// afx_msg void OnKillfocusUStrength();
116 //}}AFX_MSG
117 DECLARE_MESSAGE_MAP()
118};
119
120} // namespace Mankala
121} // namespace HodjNPodj
122} // namespace Bagel
123
124#endif
Definition: cbofdlg.h:31
Definition: mnkopt.h:43
Definition: mnkopt.h:82
Definition: afxwin.h:1599
Definition: afxwin.h:667
Definition: afxwin.h:1765
Definition: afxstr.h:31
Definition: afxwin.h:1141
Definition: minwindef.h:292