Freeciv-3.3
Loading...
Searching...
No Matches
explanation.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 2014-2020 - The Freeciv Project contributors.
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.
7
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
14#ifndef FC_EXPLANATION_H
15#define FC_EXPLANATION_H
16
17#ifdef __cplusplus
18extern "C" {
19#endif /* __cplusplus */
20
21/* A category of reasons why an action isn't enabled. */
23 /* Explanation: wrong actor unit. */
25 /* Explanation: no action target. */
27 /* Explanation: the action is redundant vs this target. */
29 /* Explanation: bad actor terrain. */
31 /* Explanation: bad target terrain. */
33 /* Explanation: being transported. */
35 /* Explanation: not being transported. */
37 /* Explanation: transports a cargo unit. */
39 /* Explanation: doesn't transport a cargo unit. */
41 /* Explanation: actor unit has a home city. */
43 /* Explanation: actor unit has no a home city. */
45 /* Explanation: must declare war first. */
47 /* Explanation: must break peace first. */
49 /* Explanation: can't be done to domestic targets. */
51 /* Explanation: can't be done to foreign targets. */
53 /* Explanation: can't be done with non allied units at target tile. */
55 /* Explanation: this nation can't act. */
57 /* Explanation: this nation can't be targeted. */
59 /* Explanation: not enough MP left. */
61 /* Explanation: can't be done to city centers. */
63 /* Explanation: can't be done to non city centers. */
65 /* Explanation: can't be done to claimed target tiles. */
67 /* Explanation: can't be done to unclaimed target tiles. */
69 /* Explanation: can't be done because target is too near. */
71 /* Explanation: can't be done because target is too far away. */
73 /* Explanation: can't be done to targets that far from the coast line. */
75 /* Explanation: can't be done because the actor can't exit its
76 * transport. */
78 /* Explanation: actor can't reach unit at target. */
80 /* Explanation: the action is disabled in this scenario. */
82 /* Explanation: too close to a city. */
84 /* Explanation: the target city is too big. */
86 /* Explanation: the target city's population limit banned the action. */
88 /* Explanation: the specified city don't have the needed capacity. */
90 /* Explanation: the target unit can't switch sides because it is unique
91 * and the actor player already has one. */
93 /* Explanation: the target tile is unknown. */
95 /* Explanation: the actor player can't afford performing this action. */
97 /* Explanation: the action is blocked by another action. */
99 /* Explanation: the target unit is not wipable. */
101 /* Explanation not detected. */
103};
104
105#ifdef __cplusplus
106}
107#endif /* __cplusplus */
108
109#endif /* FC_EXPLANATION_H */
ane_kind
Definition explanation.h:22
@ ANEK_IS_CITY_CENTER
Definition explanation.h:62
@ ANEK_ACTION_BLOCKS
Definition explanation.h:98
@ ANEK_DOMESTIC
Definition explanation.h:50
@ ANEK_LOW_MP
Definition explanation.h:60
@ ANEK_TGT_TILE_UNKNOWN
Definition explanation.h:94
@ ANEK_BAD_TERRAIN_TGT
Definition explanation.h:32
@ ANEK_TRIREME_MOVE
Definition explanation.h:74
@ ANEK_CITY_TOO_CLOSE_TGT
Definition explanation.h:83
@ ANEK_CITY_NO_CAPACITY
Definition explanation.h:89
@ ANEK_NATION_TGT
Definition explanation.h:58
@ ANEK_BAD_TARGET
Definition explanation.h:28
@ ANEK_MISSING_TARGET
Definition explanation.h:26
@ ANEK_TGT_IS_CLAIMED
Definition explanation.h:66
@ ANEK_FOREIGN
Definition explanation.h:52
@ ANEK_DISEMBARK_ACT
Definition explanation.h:77
@ ANEK_IS_TRANSPORTED
Definition explanation.h:34
@ ANEK_IS_NOT_CITY_CENTER
Definition explanation.h:64
@ ANEK_TGT_IS_UNCLAIMED
Definition explanation.h:68
@ ANEK_TGT_NON_ALLIED_UNITS_ON_TILE
Definition explanation.h:54
@ ANEK_BAD_TERRAIN_ACT
Definition explanation.h:30
@ ANEK_SCENARIO_DISABLED
Definition explanation.h:81
@ ANEK_ACTOR_HAS_HOME_CITY
Definition explanation.h:42
@ ANEK_PEACE
Definition explanation.h:48
@ ANEK_DISTANCE_NEAR
Definition explanation.h:70
@ ANEK_UNKNOWN
@ ANEK_ACT_NOT_ENOUGH_MONEY
Definition explanation.h:96
@ ANEK_IS_NOT_TRANSPORTING
Definition explanation.h:40
@ ANEK_TGT_UNREACHABLE
Definition explanation.h:79
@ ANEK_ACTOR_HAS_NO_HOME_CITY
Definition explanation.h:44
@ ANEK_NOT_WIPABLE
@ ANEK_CITY_TOO_BIG
Definition explanation.h:85
@ ANEK_NO_WAR
Definition explanation.h:46
@ ANEK_DISTANCE_FAR
Definition explanation.h:72
@ ANEK_ACTOR_UNIT
Definition explanation.h:24
@ ANEK_NATION_ACT
Definition explanation.h:56
@ ANEK_IS_NOT_TRANSPORTED
Definition explanation.h:36
@ ANEK_IS_TRANSPORTING
Definition explanation.h:38
@ ANEK_CITY_POP_LIMIT
Definition explanation.h:87
@ ANEK_TGT_IS_UNIQUE_ACT_HAS
Definition explanation.h:92