Freeciv21
Develop your civilization from humble roots to a global empire
univ_value.h File Reference
+ This graph shows which files directly or indirectly include this file:

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)
 Initialize universal value with a value suitable for the kind. More...
 
void universal_kind_values (struct universal *univ, univ_kind_values_cb cb, void *data)
 Call cb for each value possible for the universal kind. More...
 

Typedef Documentation

◆ univ_kind_values_cb

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

Definition at line 16 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 231 of file univ_value.cpp.

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 36 of file univ_value.cpp.

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