Freeciv21
Develop your civilization from humble roots to a global empire
view_units.h File Reference
#include <QItemSelection>
#include <QTableWidget>
#include <QWidget>
#include "ui_view_units.h"
#include "climisc.h"
+ Include dependency graph for view_units.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  unit_view_entry
 Structure of data for the Units View. More...
 
struct  unit_waiting_entry
 Structure of unit waiting data for the Units View. More...
 
class  units_view
 Table widget to display units view (F2) More...
 

Functions

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 popdown_units_view ()
 Closes units view. More...
 
struct unitfind_nearest_unit (const struct unit_type *utype, struct tile *ptile)
 Function to help us find the nearest unit. 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_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().