Freeciv-3.2: /fast/freeciv/nightly/S3_2/tools/ruledit/univ_value.c File Reference

Freeciv-3.2

Loading...
Searching...
No Matches
Functions
univ_value.c File Reference
`#include "achievements.h"`
`#include "counters.h"`
`#include "game.h"`
`#include "government.h"`
`#include "nation.h"`
`#include "requirements.h"`
`#include "server_settings.h"`
`#include "specialist.h"`
`#include "tech.h"`
`#include "traderoutes.h"`
`#include "rssanity.h"`
`#include "settings.h"`
`#include "univ_value.h"`

Go to the source code of this file.

## Functions

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

## 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 263 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().