Fixed the way Qt-client popup_terrain_info() checks for empty string.
[freeciv.git] / server / advisors / advchoice.h
blob8e2c0f01943a76e258fa304f654d86be067f3d4d
1 /**********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 ***********************************************************************/
13 #ifndef FC__ADVCHOICE_H
14 #define FC__ADVCHOICE_H
16 enum choice_type {
17 CT_NONE = 0,
18 CT_BUILDING = 1,
19 CT_CIVILIAN,
20 CT_ATTACKER,
21 CT_DEFENDER,
22 CT_LAST
25 struct adv_choice {
26 enum choice_type type;
27 universals_u value; /* what the advisor wants */
28 adv_want want; /* how much it wants it */
29 bool need_boat; /* unit being built wants a boat */
32 void adv_init_choice(struct adv_choice *choice);
34 #endif /* FC__ADVCHOICE_H */