You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
998 B
53 lines
998 B
#ifndef _NEWGAMEDLG_H_
|
|
#define _NEWGAMEDLG_H_
|
|
|
|
#include <kdialogbase.h>
|
|
|
|
#include "gamecore.h"
|
|
#include "minimap.h"
|
|
|
|
class NewGameDlgUI;
|
|
|
|
/*************************************************************************
|
|
New Game Dialog
|
|
************************************************************************/
|
|
|
|
class NewGameDlg : public KDialogBase
|
|
{
|
|
TQ_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
|