Freeciv-3.2
Loading...
Searching...
No Matches
Public Slots | Public Member Functions | Private Slots | Private Attributes
pregame_options Class Reference

#include <fc_client.h>

+ Inheritance diagram for pregame_options:

Public Slots

void popup_server_options ()
 

Public Member Functions

 pregame_options (QWidget *parent)
 
void init ()
 
void set_rulesets (int num_rulesets, char **rulesets)
 
void set_aifill (int aifill)
 
void update_ai_level ()
 
void update_buttons ()
 

Private Slots

void max_players_change (int i)
 
void ailevel_change (int i)
 
void ruleset_change (int i)
 
void pick_nation ()
 

Private Attributes

QComboBoxailevel
 
QComboBoxcruleset
 
QPushButton * nation
 
QSpinBoxmax_players
 

Detailed Description

Definition at line 369 of file fc_client.h.

Constructor & Destructor Documentation

◆ pregame_options()

pregame_options::pregame_options ( QWidget *  parent)

Pregame options constructor

Definition at line 1161 of file fc_client.cpp.

Member Function Documentation

◆ ailevel_change

void pregame_options::ailevel_change ( int  i)
privateslot

Slot for changing level of AI

Definition at line 1312 of file fc_client.cpp.

Referenced by init().

◆ init()

void pregame_options::init ( )

Init's layout and default values for options in START_PAGE

Definition at line 1168 of file fc_client.cpp.

Referenced by fc_client::create_start_page().

◆ max_players_change

void pregame_options::max_players_change ( int  i)
privateslot

Slot for changing aifill value

Definition at line 1304 of file fc_client.cpp.

Referenced by init().

◆ pick_nation

void pregame_options::pick_nation ( )
privateslot

Slot for picking a nation

Definition at line 1344 of file fc_client.cpp.

Referenced by init().

◆ popup_server_options

void pregame_options::popup_server_options ( )
slot

Popups client options

Definition at line 1352 of file fc_client.cpp.

Referenced by init().

◆ ruleset_change

void pregame_options::ruleset_change ( int  i)
privateslot

Slot for changing ruleset

Definition at line 1331 of file fc_client.cpp.

Referenced by init().

◆ 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 1252 of file fc_client.cpp.

Referenced by fc_client::update_start_page().

◆ set_rulesets()

void pregame_options::set_rulesets ( int  num_rulesets,
char **  rulesets 
)

Update the ruleset list

Definition at line 1229 of file fc_client.cpp.

◆ update_ai_level()

void pregame_options::update_ai_level ( )

Updates the AI skill level control

Definition at line 1288 of file fc_client.cpp.

Referenced by fc_client::update_buttons().

◆ update_buttons()

void pregame_options::update_buttons ( )

Updates the buttons whenever the game state has changed

Definition at line 1262 of file fc_client.cpp.

Referenced by init(), and fc_client::update_buttons().

Field Documentation

◆ ailevel

QComboBox* pregame_options::ailevel
private

Definition at line 372 of file fc_client.h.

Referenced by ailevel_change(), init(), and update_ai_level().

◆ cruleset

QComboBox* pregame_options::cruleset
private

Definition at line 373 of file fc_client.h.

Referenced by init(), ruleset_change(), and set_rulesets().

◆ max_players

QSpinBox* pregame_options::max_players
private

Definition at line 375 of file fc_client.h.

Referenced by init(), and set_aifill().

◆ nation

QPushButton* pregame_options::nation
private

Definition at line 374 of file fc_client.h.

Referenced by init(), and update_buttons().