mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-30 08:57:00 +02:00
58 lines
1.1 KiB
C++
58 lines
1.1 KiB
C++
/*
|
|
* playerparams.h, part of VCMI engine
|
|
*
|
|
* Authors: listed in file AUTHORS in main folder
|
|
*
|
|
* License: GNU General Public License v2.0 or later
|
|
* Full text of license available in license.txt file, in main folder
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QWidget>
|
|
#include "../lib/mapping/CMapHeader.h"
|
|
#include "mapcontroller.h"
|
|
|
|
namespace Ui {
|
|
class PlayerParams;
|
|
}
|
|
|
|
class PlayerParams : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit PlayerParams(MapController & controller, int playerId, QWidget *parent = nullptr);
|
|
~PlayerParams();
|
|
|
|
PlayerInfo playerInfo;
|
|
int playerColor;
|
|
|
|
void onTownPicked(const CGObjectInstance *);
|
|
|
|
private slots:
|
|
void on_radioHuman_toggled(bool checked);
|
|
|
|
void on_radioCpu_toggled(bool checked);
|
|
|
|
void on_mainTown_currentIndexChanged(int index);
|
|
|
|
void on_generateHero_stateChanged(int arg1);
|
|
|
|
void on_randomFaction_stateChanged(int arg1);
|
|
|
|
void allowedFactionsCheck(QListWidgetItem *);
|
|
|
|
void on_teamId_activated(int index);
|
|
|
|
void on_playerColorCombo_activated(int index);
|
|
|
|
void on_townSelect_clicked();
|
|
|
|
private:
|
|
Ui::PlayerParams *ui;
|
|
|
|
MapController & controller;
|
|
};
|