Freeciv21
Develop your civilization from humble roots to a global empire
unit_utils.cpp File Reference
#include "unit_utils.h"
#include "player.h"
#include "unit.h"
#include "unitlist.h"
#include <algorithm>
+ Include dependency graph for unit_utils.cpp:

Go to the source code of this file.

Functions

std::vector< unit * > sorted (const unit_list *units)
 Returns a version of units sorted in the way the user would like to see them. More...
 

Function Documentation

◆ sorted()

std::vector<unit *> sorted ( const unit_list *  units)

Returns a version of units sorted in the way the user would like to see them.

Definition at line 87 of file unit_utils.cpp.

Referenced by city_trade_removable(), unit_list_widget::set_units(), and units_select::update_units().