ScummVM API documentation
usercfg.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_ARCHEROIDS_USERCFG_H
23#define HODJNPODJ_ARCHEROIDS_USERCFG_H
24
25#include "bagel/afxwin.h"
26#include "bagel/hodjnpodj/hnplibs/stdinc.h"
27#include "bagel/hodjnpodj/hnplibs/cbofdlg.h"
28#include "bagel/hodjnpodj/hnplibs/text.h"
29#include "bagel/hodjnpodj/hnplibs/button.h"
30
31namespace Bagel {
32namespace HodjNPodj {
33namespace Archeroids {
34
35#define IDD_USERCFG 100
36
37#define DEFAULT_GAME_SPEED 4
38#define DEFAULT_ARCHER_LEVEL 1
39#define DEFAULT_LIVES 3
40#define DEFAULT_BADGUYS 16
41
42#define SPEED_MIN 1
43#define SPEED_MAX 10
44#define LEVEL_MIN 1
45#define LEVEL_MAX 8
46#define LIVES_MIN 1
47#define LIVES_MAX 5
48#define BADGUYS_MIN 1
49#define BADGUYS_MAX 16
50
51class CUserCfgDlg : public CBmpDialog {
52public:
53 CUserCfgDlg(CWnd *, CPalette *, unsigned int);
54
55protected:
56 virtual bool OnCommand(WPARAM, LPARAM) override;
57 virtual bool OnInitDialog() override;
58 void PutDlgData();
59 void ClearDialogImage();
60
61 void OnDestroy();
62 void OnHScroll(unsigned int, unsigned int, CScrollBar *);
63 void OnPaint();
64 DECLARE_MESSAGE_MAP()
65
66 //
67 // user preference data
68 //
69 CText *m_pTxtSpeed = nullptr;
70 CText *m_pTxtSpeedSetting = nullptr;
71 CText *m_pTxtLevel = nullptr;
72 CText *m_pTxtLives = nullptr;
73 int m_nInitGameSpeed = 0;
74 int m_nInitArcherLevel = 0;
75 int m_nInitNumLives = 0;
76 int m_nInitNumBadGuys = 0;
77 bool m_bShouldSave = false; // True if we should save theses settings
78};
79
80} // namespace Archeroids
81} // namespace HodjNPodj
82} // namespace Bagel
83
84#endif
Definition: cbofdlg.h:31
Definition: text.h:62
Definition: afxwin.h:667
Definition: afxwin.h:1765
Definition: afxwin.h:1141