![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include "page_game.h"#include <QGridLayout>#include <QIcon>#include <QResizeEvent>#include <QScreen>#include "fcintl.h"#include "calendar.h"#include "cityrep_g.h"#include "government.h"#include "repodlgs_g.h"#include "chatline.h"#include "citydlg.h"#include "client_main.h"#include "fc_client.h"#include "gotodlg.h"#include "hudwidget.h"#include "icons.h"#include "mapctrl_common.h"#include "messagewin.h"#include "minimap.h"#include "minimap_panel.h"#include "ratesdlg.h"#include "text.h"#include "tileset/tilespec.h"#include "top_bar.h"#include "views/view_map.h"#include "views/view_map_common.h"#include "views/view_nations.h"#include "views/view_units.h"#include "voteinfo_bar.h"
Include dependency graph for page_game.cpp:Go to the source code of this file.
Functions | |
| static void | center_next_enemy_city () |
| Centers next enemy city on view. More... | |
| static void | center_next_player_city () |
| Centers next player city on view. More... | |
| static void | center_next_player_capital () |
| Centers next enemy capital. More... | |
| static void | cycle_enemy_units () |
| Center on next enemy unit. More... | |
| void | toggle_units_report () |
| pageGame * | queen () |
| Return game instandce. More... | |
| void | update_info_label (void) |
| Typically an info box is provided to tell the player about the state of their civilization. More... | |
Variables | |
| int | last_center_capital = 0 |
| int | last_center_player_city = 0 |
| int | last_center_enemy_city = 0 |
| int | last_center_enemy = 0 |
|
static |
Centers next enemy city on view.
Definition at line 397 of file page_game.cpp.
Referenced by pageGame::pageGame().
|
static |
Centers next enemy capital.
Definition at line 477 of file page_game.cpp.
Referenced by pageGame::pageGame().
|
static |
Centers next player city on view.
Definition at line 437 of file page_game.cpp.
Referenced by pageGame::pageGame().
|
static |
Center on next enemy unit.
Definition at line 520 of file page_game.cpp.
Referenced by pageGame::pageGame().
| pageGame* queen | ( | ) |
Return game instandce.
Definition at line 557 of file page_game.cpp.
Referenced by unit_list_widget::activate(), trade_generator::add_city(), chat_widget::anchor_clicked(), apply_notify_font(), auto_center_on_focus_unit(), city_dialog::buy(), info_tile::calc_size(), trade_generator::calculate(), city_widget::center(), center_next_enemy_city(), center_next_player_capital(), center_next_player_city(), center_on_something(), city_dialog_is_open(), city_font_update(), city_report_dialog_popup(), city_widget::city_view(), trade_generator::clear_trade_planing(), close_all_diplomacy_dialogs(), goto_dialog::close_dlg(), units_select::closeEvent(), create_line_at_mouse_pos(), fc_game_tab_widget::current_changed(), fc_client::current_page(), cycle_enemy_units(), dirty_all(), dirty_rect(), do_move_unit(), eco_report::eco_report(), economy_report_dialog_popup(), endgame_report::endgame_report(), endgame_report_dialog_player(), fc_game_tab_widget::event(), chat_widget::eventFilter(), units_view::find_nearest(), flush_dirty(), city_dialog::get_city(), pageGame::gimmeIndexOf(), notify_goto::goto_tile(), gui_load_theme(), gui_qt_apply_font(), handle_diplomacy_accept_treaty(), handle_diplomacy_cancel_meeting(), handle_diplomacy_create_clause(), handle_diplomacy_init_meeting(), handle_diplomacy_remove_clause(), handle_unit_bombard_info(), handle_unit_combat_info(), handle_unit_packet_common(), city_dialog::hideEvent(), info_tile::i(), endgame_report::init(), ss_report::init(), city_report::init(), eco_report::init(), plr_report::init(), units_view::init(), diplo_dlg::init(), science_report::init(), is_any_city_dialog_open(), freeciv::upkeep_widget::item_double_clicked(), goto_dialog::item_selected(), message_widget::item_selected(), key_center_capital(), map_view::keyPressEvent(), mr_menu::load_new_tileset(), message_dlg::message_dlg(), meswin_goto(), meswin_popup_city(), hud_unit_combat::mousePressEvent(), minimap_view::mousePressEvent(), top_bar_widget::mousePressEvent(), hud_units::moveEvent(), mr_menu::nonunit_sensitivity(), pageGame::pageGame(), top_bar_widget::paintEvent(), plr_report::plr_diplomacy(), plr_report::plr_report(), popdown_all_game_dialogs(), popdown_all_spaceships_dialogs(), popdown_city_dialog(), popdown_city_report(), popdown_economy_report(), popdown_endgame_report(), popdown_players_report(), popdown_science_report(), popdown_unit_sel(), popdown_units_view(), popup_action_selection(), popup_combat_info(), popup_endgame_report(), popup_goto_dialog(), popup_messageopt_dialog(), popup_notify_dialog(), popup_pillage_dialog(), popup_players_dialog(), popup_sabotage_dialog(), popup_spaceship_dialog(), real_city_dialog_popup(), real_city_dialog_refresh(), real_economy_report_dialog_update(), real_focus_units_changed(), real_menus_update(), real_meswin_dialog_update(), real_players_dialog_update(), real_science_report_dialog_update(), recenter_button_pressed(), city_dialog::refresh(), refresh_spaceship_dialog(), trade_generator::remove_city(), trade_generator::remove_virtual_city(), request_center_focus_unit(), diplo_wdg::restore_pixmap(), pageGame::rmGameTab(), mr_menu::save_image(), science_report_dialog_popup(), science_report_dialog_redraw(), minimap_panel::set_minimap_visible(), mr_menu::setup_menus(), map_view::shortcut_pressed(), show_new_turn_info(), mr_menu::slot_autocaravan(), mr_menu::slot_popup_tax_rates(), spy_steal_shared(), tileset_changed(), tilespec_reread(), map_view::timer_event(), toggle_unit_sel_widget(), top_bar_center_unit(), top_bar_indicators_menu(), top_bar_left_click_science(), top_bar_right_click_diplomacy(), top_bar_right_click_science(), top_bar_show_map(), top_bar_units_view(), unit_focus_advance(), units_view::units_view(), units_view_dialog_popup(), units_view_dialog_update(), hud_units::update_actions(), update_city_report(), update_info_label(), update_minimap(), update_mouse_cursor(), plr_report::update_report(), update_timeout_label(), update_top_bar_diplomacy_status(), update_turn_done_button_state(), update_unit_info_label(), update_unit_sel(), voteinfo_gui_update(), fc_client::write_settings(), city_report::~city_report(), diplo_dlg::~diplo_dlg(), eco_report::~eco_report(), endgame_report::~endgame_report(), message_dlg::~message_dlg(), plr_report::~plr_report(), science_report::~science_report(), ss_report::~ss_report(), and units_view::~units_view().
| void toggle_units_report | ( | ) |
| void update_info_label | ( | void | ) |
Typically an info box is provided to tell the player about the state of their civilization.
This function is called when the label is changed.
Definition at line 750 of file page_game.cpp.
Referenced by client_state(), fc_client::current_page(), handle_city_info(), handle_game_info(), handle_new_year(), handle_player_info(), and handle_start_phase().
| int last_center_capital = 0 |
Definition at line 52 of file page_game.cpp.
Referenced by start_turn().
| int last_center_enemy = 0 |
Definition at line 55 of file page_game.cpp.
Referenced by cycle_enemy_units(), and start_turn().
| int last_center_enemy_city = 0 |
Definition at line 54 of file page_game.cpp.
Referenced by center_next_enemy_city(), and start_turn().
| int last_center_player_city = 0 |
Definition at line 53 of file page_game.cpp.
Referenced by center_next_player_capital(), center_next_player_city(), and start_turn().