summaryrefslogtreecommitdiffstats
path: root/konquest/newgamedlg.h
blob: 6a8c81d424d4a58dac760c97739f31b608c4994c (plain)
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
42
43
44
45
46
47
48
49
50
51
#ifndef _NEWGAMEDLG_H_
#define _NEWGAMEDLG_H_

#include <kdialogbase.h>

#include "gamecore.h"
#include "minimap.h"

class NewGameDlgUI;

/*************************************************************************
 New Game Dialog
 ************************************************************************/

class NewGameDlg : public KDialogBase
{
    Q_OBJECT

public:
    NewGameDlg( TQWidget *parent, Map *map, PlayerList *playerList,
                Player *neutralPlayer, PlanetList *planetList );

    int turns( void );

    void save();

protected slots:
    void slotPlayerCount(int playerCount);
    void slotNewMap();
    void slotTurns();
    void slotNewPlayer();
    void slotAddPlayer();
    void slotDefault();
    void slotOk();

private:
    void init();
    void updateMiniMap();
    void updateLabels();
    void setPlayerCount(int playerCount);

private:
    PlayerList *plrList;
    PlanetList *plnetList;
    Player *neutral;
    Map *map;

    NewGameDlgUI *w;
};

#endif