Freeciv21
Develop your civilization from humble roots to a global empire
pregameoptions.h
Go to the documentation of this file.
1 /**************************************************************************
2  ____ Copyright (c) 1996-2020 Freeciv21 and Freeciv
3  / \__ contributors. This file is part of Freeciv21.
4 |\ / @ \ Freeciv21 is free software: you can redistribute it
5 \ \_______| \ .:|> and/or modify it under the terms of the GNU
6  \ ##| | \__/ General Public License as published by the Free
7  | ####\__/ \ Software Foundation, either version 3 of the License,
8  / / ## \| or (at your option) any later version.
9  / /__________\ \ You should have received a copy of the
10  L_JJ \__JJ GNU General Public License along with Freeciv21.
11  If not, see https://www.gnu.org/licenses/.
12 **************************************************************************/
13 #pragma once
14 
15 #include <QWidget>
16 
17 class fc_client;
18 
19 #include "ui_pregameoptions.h"
20 
21 class pregame_options : public QWidget {
22  Q_OBJECT
23 
24 public:
25  pregame_options(QWidget *parent);
26 
27  void set_rulesets(int num_rulesets, QStringList rulesets);
28  void set_aifill(int aifill);
29  void update_ai_level();
30  void update_buttons();
31 private slots:
32  void max_players_change(int i);
33  void ailevel_change(int i);
34  void ruleset_change(int i);
35  void pick_nation();
36 
37 private:
38  Ui::FormPregameOptions ui;
39 };
void pick_nation()
Slot for picking a nation.
void update_ai_level()
Updates the AI skill level control.
void ailevel_change(int i)
Slot for changing level of AI.
Ui::FormPregameOptions ui
void set_aifill(int aifill)
Sets the value of the "aifill" option.
void max_players_change(int i)
Slot for changing aifill value.
void set_rulesets(int num_rulesets, QStringList rulesets)
Update the ruleset list.
pregame_options(QWidget *parent)
Pregame options contructor.
void ruleset_change(int i)
Slot for changing ruleset.
void update_buttons()
Updates the buttons whenever the game state has changed.
const char * aifill(int amount)
Fill or remove players to meet the given aifill.
Definition: srv_main.cpp:2440