-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathNewGameDialog.h
41 lines (33 loc) · 1012 Bytes
/
NewGameDialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef __NewGameDialog__
#define __NewGameDialog__
#include "stdafx.h"
/**
@file
Subclass of TNewGameDialog, which is generated by wxFormBuilder.
*/
#include "GUI.h"
/** Implementing TNewGameDialog */
class NewGameDialog : public TNewGameDialog
{
protected:
virtual void doCancel( wxCommandEvent& event );
virtual void doOK( wxCommandEvent& event );
virtual void doInit( wxInitDialogEvent& event );
virtual void doHandicapUpdate( wxSpinEvent& event );
virtual void doRadioBox( wxCommandEvent& event );
public:
/** Constructor */
NewGameDialog( wxWindow* parent );
/* getters/setters */
float getKomi();
int getHandicap();
int getBoardsize();
int getSimulations();
int getPlayerColor();
int getTimeControl();
bool getNetsEnabled();
static int simulationsToVisitLimit(int visits);
void checkNetsEnabled();
void checkHandicapRange();
};
#endif // __NewGameDialog__