Freeciv-3.2
|
Go to the source code of this file.
Return TRUE if the function returns true for any of the units.
Definition at line 95 of file unitlist.c.
Referenced by mr_menu::menus_sensitive(), and real_menus_update().
bool can_units_do_activity | ( | const struct civ_map * | nmap, |
const struct unit_list * | punits, | ||
enum unit_activity | activity | ||
) |
Returns TRUE if any of the units can do the activity.
Definition at line 128 of file unitlist.c.
bool can_units_do_activity_targeted | ( | const struct civ_map * | nmap, |
const struct unit_list * | punits, | ||
enum unit_activity | activity, | ||
struct extra_type * | pextra | ||
) |
Returns TRUE if any of the units can do the targeted activity.
Definition at line 144 of file unitlist.c.
Returns TRUE if any of the units can build any road.
Definition at line 161 of file unitlist.c.
Referenced by mr_menu::menus_sensitive(), and real_menus_update().
bool can_units_do_base_gui | ( | const struct unit_list * | punits, |
enum base_gui_type | base_gui | ||
) |
Returns TRUE if any of the units can build base with given gui_type.
Definition at line 180 of file unitlist.c.
Referenced by mr_menu::menus_sensitive(), and real_menus_update().
bool can_units_do_on_map | ( | const struct civ_map * | nmap, |
const struct unit_list * | punits, | ||
bool(can_fn)(const struct civ_map *nmap, const struct unit *punit) | |||
) |
Return TRUE if the function returns true for any of the units, on specific map.
Definition at line 111 of file unitlist.c.
Referenced by mr_menu::menus_sensitive(), and real_menus_update().
|
static |
Comparison function for unit_list_sort, sorting by ord_city: see above.
Only used in server/savegame.c.
Definition at line 62 of file unitlist.c.
Referenced by unit_list_sort_ord_city().
|
static |
Comparison function for unit_list_sort, sorting by ord_map: The indirection is a bit gory: Read from the right:
Only used in server/savegame.c.
Definition at line 51 of file unitlist.c.
Referenced by unit_list_sort_ord_map().
Look for a unit with the given ID in the unit list. Returns NULL if none is found.
Definition at line 30 of file unitlist.c.
Referenced by dai_manage_military(), mr_menu::find_last_unit_pos(), sha_unit_change(), sha_unit_recall(), sha_unit_remove(), and mr_menu::slot_execute_orders().
Sorts the unit list by punit->server.ord_city values.
Only used in server/savegame/savegame[23].c.
Definition at line 85 of file unitlist.c.
Referenced by unit_ordering_apply(), and unit_ordering_apply().
Sorts the unit list by punit->server.ord_map values.
Only used in server/savegame/savegame[23].c.
Definition at line 73 of file unitlist.c.
Referenced by unit_ordering_apply(), and unit_ordering_apply().
Return TRUE iff any of the units is a transporter that is occupied.
Definition at line 273 of file unitlist.c.
Referenced by unit_item::create_actions(), mr_menu::menus_sensitive(), and real_menus_update().
Return TRUE iff any of the units can convert to another unit type
Definition at line 349 of file unitlist.c.
Referenced by mr_menu::menus_sensitive(), and real_menus_update().
If has_flag is true, returns true iff any of the units are able to do the specified action.
If has_flag is false, returns true iff any of the units are unable do the specified action.
Definition at line 239 of file unitlist.c.
Referenced by mr_menu::menus_sensitive(), real_menus_update(), and go_act_menu::update().
bool units_can_do_action_with_result | ( | const struct unit_list * | punits, |
enum action_result | result, | ||
bool | can_do | ||
) |
If has_flag is true, returns true iff any of the units are able to do any action with the specified result.
If has_flag is false, returns true iff any of the units are unable do any action with the specified result.
Definition at line 258 of file unitlist.c.
Returns TRUE iff any of these units can load.
Definition at line 287 of file unitlist.c.
Referenced by unit_item::create_actions(), mr_menu::menus_sensitive(), and real_menus_update().
Return TRUE iff any of these units can unload.
Definition at line 301 of file unitlist.c.
Referenced by unit_item::create_actions(), mr_menu::menus_sensitive(), and real_menus_update().
Return TRUE iff any of the units can be upgraded to another unit type (for money)
Definition at line 334 of file unitlist.c.
Referenced by unit_item::create_actions(), mr_menu::menus_sensitive(), and real_menus_update().
Does the list contain any cityfounder units
Definition at line 217 of file unitlist.c.
Referenced by mr_menu::menus_sensitive().
bool units_have_activity_on_tile | ( | const struct unit_list * | punits, |
enum unit_activity | activity | ||
) |
Return TRUE iff any of the units' tiles have the activity running on them.
Definition at line 318 of file unitlist.c.
Referenced by mr_menu::menus_sensitive(), and real_menus_update().
bool units_have_type_flag | ( | const struct unit_list * | punits, |
enum unit_type_flag_id | flag, | ||
bool | has_flag | ||
) |
If has_flag is true, returns true iff any of the units have the flag.
If has_flag is false, returns true iff any of the units don't have the flag.
Definition at line 202 of file unitlist.c.
Referenced by mr_menu::menus_sensitive(), and real_menus_update().