Freeciv-3.1: /fast/freeciv/nightly/S3_1/tools/ruledit/univ_value.h File Reference

Freeciv-3.1

Loading...
Searching...
No Matches
Typedefs | Functions
univ_value.h File Reference

Go to the source code of this file.

## Typedefs

typedef void(* | univ_kind_values_cb) (const char *value, bool current, void *data)

## Functions

bool | universal_value_initial (struct universal *src)
void | universal_kind_values (struct universal *univ, univ_kind_values_cb cb, void *data)

## Typedef Documentation

## ◆ univ_kind_values_cb

typedef void(* univ_kind_values_cb) (const char *value, bool current, void *data)

Definition at line 20 of file univ_value.h.

## Function Documentation

## ◆ universal_kind_values()

void universal_kind_values | ( | struct universal * | univ,
|  | univ_kind_values_cb | cb,
|  | void * | data
| ) |  |

Call cb for each value possible for the universal kind.

Definition at line 230 of file univ_value.c.

Referenced by req_edit::fill_active().

## ◆ universal_value_initial()

bool universal_value_initial | ( | struct universal * | src | ) |

Initialize universal value with a value suitable for the kind.

Returns TRUE iff there's any values universal kind can have with current ruleset.

Definition at line 40 of file univ_value.c.

Referenced by req_edit::req_edit(), and req_edit::req_type_menu().