Freeciv-3.2
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 264 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 42 of file univ_value.c.

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