Freeciv21
Develop your civilization from humble roots to a global empire
pregame_options Class Reference

#include <pregameoptions.h>

+ Inheritance diagram for pregame_options:
+ Collaboration diagram for pregame_options:

Public Member Functions

 pregame_options (QWidget *parent)
 Pregame options contructor. More...
 
void set_rulesets (int num_rulesets, QStringList rulesets)
 Update the ruleset list. More...
 
void set_aifill (int aifill)
 Sets the value of the "aifill" option. More...
 
void update_ai_level ()
 Updates the AI skill level control. More...
 
void update_buttons ()
 Updates the buttons whenever the game state has changed. More...
 

Private Slots

void max_players_change (int i)
 Slot for changing aifill value. More...
 
void ailevel_change (int i)
 Slot for changing level of AI. More...
 
void ruleset_change (int i)
 Slot for changing ruleset. More...
 
void pick_nation ()
 Slot for picking a nation. More...
 

Private Attributes

Ui::FormPregameOptions ui
 

Detailed Description

Definition at line 21 of file pregameoptions.h.

Constructor & Destructor Documentation

◆ pregame_options()

pregame_options::pregame_options ( QWidget *  parent)

Pregame options contructor.

Definition at line 38 of file pregameoptions.cpp.

Member Function Documentation

◆ ailevel_change

void pregame_options::ailevel_change ( int  i)
privateslot

Slot for changing level of AI.

Definition at line 162 of file pregameoptions.cpp.

Referenced by pregame_options().

◆ max_players_change

void pregame_options::max_players_change ( int  i)
privateslot

Slot for changing aifill value.

Definition at line 154 of file pregameoptions.cpp.

Referenced by pregame_options().

◆ pick_nation

void pregame_options::pick_nation ( )
privateslot

Slot for picking a nation.

Definition at line 196 of file pregameoptions.cpp.

Referenced by pregame_options().

◆ ruleset_change

void pregame_options::ruleset_change ( int  i)
privateslot

Slot for changing ruleset.

Definition at line 182 of file pregameoptions.cpp.

Referenced by pregame_options().

◆ set_aifill()

void pregame_options::set_aifill ( int  aifill)

Sets the value of the "aifill" option.

Doesn't send the new value to the server

Definition at line 103 of file pregameoptions.cpp.

◆ set_rulesets()

void pregame_options::set_rulesets ( int  num_rulesets,
QStringList  rulesets 
)

Update the ruleset list.

Definition at line 78 of file pregameoptions.cpp.

◆ update_ai_level()

void pregame_options::update_ai_level ( )

Updates the AI skill level control.

Definition at line 138 of file pregameoptions.cpp.

◆ update_buttons()

void pregame_options::update_buttons ( )

Updates the buttons whenever the game state has changed.

Definition at line 113 of file pregameoptions.cpp.

Referenced by pregame_options().

Member Data Documentation

◆ ui

Ui::FormPregameOptions pregame_options::ui
private