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
};
fc_client
Definition:
fc_client.h:93
pregame_options
Definition:
pregameoptions.h:21
pregame_options::pick_nation
void pick_nation()
Slot for picking a nation.
Definition:
pregameoptions.cpp:196
pregame_options::update_ai_level
void update_ai_level()
Updates the AI skill level control.
Definition:
pregameoptions.cpp:138
pregame_options::ailevel_change
void ailevel_change(int i)
Slot for changing level of AI.
Definition:
pregameoptions.cpp:162
pregame_options::ui
Ui::FormPregameOptions ui
Definition:
pregameoptions.h:38
pregame_options::set_aifill
void set_aifill(int aifill)
Sets the value of the "aifill" option.
Definition:
pregameoptions.cpp:103
pregame_options::max_players_change
void max_players_change(int i)
Slot for changing aifill value.
Definition:
pregameoptions.cpp:154
pregame_options::set_rulesets
void set_rulesets(int num_rulesets, QStringList rulesets)
Update the ruleset list.
Definition:
pregameoptions.cpp:78
pregame_options::pregame_options
pregame_options(QWidget *parent)
Pregame options contructor.
Definition:
pregameoptions.cpp:38
pregame_options::ruleset_change
void ruleset_change(int i)
Slot for changing ruleset.
Definition:
pregameoptions.cpp:182
pregame_options::update_buttons
void update_buttons()
Updates the buttons whenever the game state has changed.
Definition:
pregameoptions.cpp:113
aifill
const char * aifill(int amount)
Fill or remove players to meet the given aifill.
Definition:
srv_main.cpp:2440
client
pregameoptions.h
Generated by
1.9.1