1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00
vcmi/mapeditor/playerparams.h

43 lines
755 B
C
Raw Normal View History

2022-09-04 20:01:49 +02:00
#ifndef PLAYERPARAMS_H
#define PLAYERPARAMS_H
#include <QWidget>
#include "../lib/mapping/CMap.h"
#include "mapcontroller.h"
2022-09-04 20:01:49 +02:00
namespace Ui {
class PlayerParams;
}
class PlayerParams : public QWidget
{
Q_OBJECT
public:
explicit PlayerParams(MapController & controller, int playerId, QWidget *parent = nullptr);
2022-09-04 20:01:49 +02:00
~PlayerParams();
PlayerInfo playerInfo;
int playerColor;
private slots:
void on_radioHuman_toggled(bool checked);
void on_radioCpu_toggled(bool checked);
void on_mainTown_activated(int index);
void on_generateHero_stateChanged(int arg1);
void on_randomFaction_stateChanged(int arg1);
void allowedFactionsCheck(QListWidgetItem *);
2022-09-04 20:01:49 +02:00
private:
Ui::PlayerParams *ui;
MapController & controller;
2022-09-04 20:01:49 +02:00
};
#endif // PLAYERPARAMS_H