Freeciv21
Develop your civilization from humble roots to a global empire
univ_value.h
Go to the documentation of this file.
1 /*__ ___ ***************************************
2 / \ / \ Copyright (c) 1996-2020 Freeciv21 and Freeciv
3 \_ \ / __/ contributors. This file is part of Freeciv21.
4  _\ \ / /__ Freeciv21 is free software: you can redistribute it
5  \___ \____/ __/ and/or modify it under the terms of the GNU General
6  \_ _/ Public License as published by the Free Software
7  | @ @ \_ Foundation, either version 3 of the License,
8  | or (at your option) any later version.
9  _/ /\ You should have received a copy of the GNU
10  /o) (o/\ \_ General Public License along with Freeciv21.
11  \_____/ / If not, see https://www.gnu.org/licenses/.
12  \____/ ********************************************************/
13 #ifndef FC__UNIV_VALUE_H
14 #define FC__UNIV_VALUE_H
15 
16 typedef void (*univ_kind_values_cb)(const char *value, bool current,
17  void *data);
18 
19 bool universal_value_initial(struct universal *src);
21  void *data);
22 
23 #endif // FC__UNIV_VALUE_H
bool universal_value_initial(struct universal *src)
Initialize universal value with a value suitable for the kind.
Definition: univ_value.cpp:36
void(* univ_kind_values_cb)(const char *value, bool current, void *data)
Definition: univ_value.h:16
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: univ_value.cpp:231