Freeciv21
Develop your civilization from humble roots to a global empire
view_units.cpp File Reference
#include "views/view_units.h"
#include "canvas.h"
#include "client_main.h"
#include "fc_client.h"
#include "goto.h"
#include "hudwidget.h"
#include "page_game.h"
#include "repodlgs_common.h"
#include "tileset/sprite.h"
#include "top_bar.h"
#include "turn_done_button.h"
#include "views/view_map.h"
#include "views/view_map_common.h"
#include "movement.h"
#include "text.h"
#include "unittype.h"
+ Include dependency graph for view_units.cpp:

Go to the source code of this file.

Functions

struct unitfind_nearest_unit (const struct unit_type *utype, struct tile *ptile)
 Function to help us find the nearest unit. More...
 
std::vector< unit_view_entryget_units_view_data ()
 Returns an array of units data. More...
 
std::vector< unit_waiting_entryget_units_waiting_data ()
 Returns an array of units subject to unitwaittime. More...
 
void units_view_dialog_update (void *unused)
 Update the units view. More...
 
void units_view_dialog_popup ()
 Display the unis view. More...
 
void popdown_units_view ()
 Closes units view. More...
 

Function Documentation

◆ find_nearest_unit()

struct unit* find_nearest_unit ( const struct unit_type utype,
struct tile ptile 
)

Function to help us find the nearest unit.

Definition at line 608 of file view_units.cpp.

Referenced by units_view::find_nearest().

◆ get_units_view_data()

std::vector<unit_view_entry> get_units_view_data ( )

Returns an array of units data.

Definition at line 643 of file view_units.cpp.

Referenced by units_view::update_units().

◆ get_units_waiting_data()

std::vector<unit_waiting_entry> get_units_waiting_data ( )

Returns an array of units subject to unitwaittime.

Definition at line 718 of file view_units.cpp.

Referenced by units_view::update_waiting().

◆ popdown_units_view()

void popdown_units_view ( )

Closes units view.

Definition at line 808 of file view_units.cpp.

◆ units_view_dialog_popup()

void units_view_dialog_popup ( )

Display the unis view.

Typically triggered by F2.

Definition at line 780 of file view_units.cpp.

◆ units_view_dialog_update()

void units_view_dialog_update ( void *  unused)

Update the units view.

Definition at line 758 of file view_units.cpp.

Referenced by units_report_dialog_update().