Freeciv21
Develop your civilization from humble roots to a global empire
explanation.h
Go to the documentation of this file.
1
/**************************************************************************
2
Copyright (c) 1996-2020 Freeciv21 and Freeciv contributors. This file is
3
__ __ part of Freeciv21. Freeciv21 is free software: you can
4
/ \\..// \ redistribute it and/or modify it under the terms of the GNU
5
( oo ) General Public License as published by the Free Software
6
\__/ Foundation, either version 3 of the License, or (at your
7
option) any later version. You should have received
8
a copy of the GNU General Public License along with Freeciv21. If not,
9
see https://www.gnu.org/licenses/.
10
**************************************************************************/
11
12
#pragma once
13
14
// A category of reasons why an action isn't enabled.
15
enum
ane_kind
{
16
// Explanation: wrong actor unit.
17
ANEK_ACTOR_UNIT
,
18
// Explanation: no action target.
19
ANEK_MISSING_TARGET
,
20
// Explanation: the action is redundant vs this target.
21
ANEK_BAD_TARGET
,
22
// Explanation: bad actor terrain.
23
ANEK_BAD_TERRAIN_ACT
,
24
// Explanation: bad target terrain.
25
ANEK_BAD_TERRAIN_TGT
,
26
// Explanation: being transported.
27
ANEK_IS_TRANSPORTED
,
28
// Explanation: not being transported.
29
ANEK_IS_NOT_TRANSPORTED
,
30
// Explanation: transports a cargo unit.
31
ANEK_IS_TRANSPORTING
,
32
// Explanation: doesn't transport a cargo unit.
33
ANEK_IS_NOT_TRANSPORTING
,
34
// Explanation: actor unit has a home city.
35
ANEK_ACTOR_HAS_HOME_CITY
,
36
// Explanation: actor unit has no a home city.
37
ANEK_ACTOR_HAS_NO_HOME_CITY
,
38
// Explanation: must declare war first.
39
ANEK_NO_WAR
,
40
// Explanation: must break peace first.
41
ANEK_PEACE
,
42
// Explanation: can't be done to domestic targets.
43
ANEK_DOMESTIC
,
44
// Explanation: can't be done to foreign targets.
45
ANEK_FOREIGN
,
46
// Explanation: this nation can't act.
47
ANEK_NATION_ACT
,
48
// Explanation: this nation can't be targeted.
49
ANEK_NATION_TGT
,
50
// Explanation: not enough MP left.
51
ANEK_LOW_MP
,
52
// Explanation: can't be done to city centers.
53
ANEK_IS_CITY_CENTER
,
54
// Explanation: can't be done to non city centers.
55
ANEK_IS_NOT_CITY_CENTER
,
56
// Explanation: can't be done to claimed target tiles.
57
ANEK_TGT_IS_CLAIMED
,
58
// Explanation: can't be done to unclaimed target tiles.
59
ANEK_TGT_IS_UNCLAIMED
,
60
// Explanation: can't be done because target is too near.
61
ANEK_DISTANCE_NEAR
,
62
// Explanation: can't be done because target is too far away.
63
ANEK_DISTANCE_FAR
,
64
// Explanation: can't be done to targets that far from the coast line.
65
ANEK_TRIREME_MOVE
,
66
/* Explanation: can't be done because the actor can't exit its
67
* transport. */
68
ANEK_DISEMBARK_ACT
,
69
// Explanation: actor can't reach unit at target.
70
ANEK_TGT_UNREACHABLE
,
71
// Explanation: the action is disabled in this scenario.
72
ANEK_SCENARIO_DISABLED
,
73
// Explanation: too close to a city.
74
ANEK_CITY_TOO_CLOSE_TGT
,
75
// Explanation: the target city is too big.
76
ANEK_CITY_TOO_BIG
,
77
// Explanation: the target city's population limit banned the action.
78
ANEK_CITY_POP_LIMIT
,
79
// Explanation: the specified city don't have the needed capacity.
80
ANEK_CITY_NO_CAPACITY
,
81
/* Explanation: the target unit can't switch sides because it is unique
82
* and the actor player already has one. */
83
ANEK_TGT_IS_UNIQUE_ACT_HAS
,
84
// Explanation: the target tile is unknown.
85
ANEK_TGT_TILE_UNKNOWN
,
86
// Explanation: the actor player can't afford performing this action.
87
ANEK_ACT_NOT_ENOUGH_MONEY
,
88
// Explanation: the action is blocked by another action.
89
ANEK_ACTION_BLOCKS
,
90
// Explanation not detected.
91
ANEK_UNKNOWN
,
92
};
ane_kind
ane_kind
Definition:
explanation.h:15
ANEK_IS_CITY_CENTER
@ ANEK_IS_CITY_CENTER
Definition:
explanation.h:53
ANEK_ACTION_BLOCKS
@ ANEK_ACTION_BLOCKS
Definition:
explanation.h:89
ANEK_DOMESTIC
@ ANEK_DOMESTIC
Definition:
explanation.h:43
ANEK_LOW_MP
@ ANEK_LOW_MP
Definition:
explanation.h:51
ANEK_TGT_TILE_UNKNOWN
@ ANEK_TGT_TILE_UNKNOWN
Definition:
explanation.h:85
ANEK_BAD_TERRAIN_TGT
@ ANEK_BAD_TERRAIN_TGT
Definition:
explanation.h:25
ANEK_TRIREME_MOVE
@ ANEK_TRIREME_MOVE
Definition:
explanation.h:65
ANEK_CITY_TOO_CLOSE_TGT
@ ANEK_CITY_TOO_CLOSE_TGT
Definition:
explanation.h:74
ANEK_CITY_NO_CAPACITY
@ ANEK_CITY_NO_CAPACITY
Definition:
explanation.h:80
ANEK_NATION_TGT
@ ANEK_NATION_TGT
Definition:
explanation.h:49
ANEK_BAD_TARGET
@ ANEK_BAD_TARGET
Definition:
explanation.h:21
ANEK_MISSING_TARGET
@ ANEK_MISSING_TARGET
Definition:
explanation.h:19
ANEK_TGT_IS_CLAIMED
@ ANEK_TGT_IS_CLAIMED
Definition:
explanation.h:57
ANEK_FOREIGN
@ ANEK_FOREIGN
Definition:
explanation.h:45
ANEK_DISEMBARK_ACT
@ ANEK_DISEMBARK_ACT
Definition:
explanation.h:68
ANEK_IS_TRANSPORTED
@ ANEK_IS_TRANSPORTED
Definition:
explanation.h:27
ANEK_IS_NOT_CITY_CENTER
@ ANEK_IS_NOT_CITY_CENTER
Definition:
explanation.h:55
ANEK_TGT_IS_UNCLAIMED
@ ANEK_TGT_IS_UNCLAIMED
Definition:
explanation.h:59
ANEK_BAD_TERRAIN_ACT
@ ANEK_BAD_TERRAIN_ACT
Definition:
explanation.h:23
ANEK_SCENARIO_DISABLED
@ ANEK_SCENARIO_DISABLED
Definition:
explanation.h:72
ANEK_ACTOR_HAS_HOME_CITY
@ ANEK_ACTOR_HAS_HOME_CITY
Definition:
explanation.h:35
ANEK_PEACE
@ ANEK_PEACE
Definition:
explanation.h:41
ANEK_DISTANCE_NEAR
@ ANEK_DISTANCE_NEAR
Definition:
explanation.h:61
ANEK_UNKNOWN
@ ANEK_UNKNOWN
Definition:
explanation.h:91
ANEK_ACT_NOT_ENOUGH_MONEY
@ ANEK_ACT_NOT_ENOUGH_MONEY
Definition:
explanation.h:87
ANEK_IS_NOT_TRANSPORTING
@ ANEK_IS_NOT_TRANSPORTING
Definition:
explanation.h:33
ANEK_TGT_UNREACHABLE
@ ANEK_TGT_UNREACHABLE
Definition:
explanation.h:70
ANEK_ACTOR_HAS_NO_HOME_CITY
@ ANEK_ACTOR_HAS_NO_HOME_CITY
Definition:
explanation.h:37
ANEK_CITY_TOO_BIG
@ ANEK_CITY_TOO_BIG
Definition:
explanation.h:76
ANEK_NO_WAR
@ ANEK_NO_WAR
Definition:
explanation.h:39
ANEK_DISTANCE_FAR
@ ANEK_DISTANCE_FAR
Definition:
explanation.h:63
ANEK_ACTOR_UNIT
@ ANEK_ACTOR_UNIT
Definition:
explanation.h:17
ANEK_NATION_ACT
@ ANEK_NATION_ACT
Definition:
explanation.h:47
ANEK_IS_NOT_TRANSPORTED
@ ANEK_IS_NOT_TRANSPORTED
Definition:
explanation.h:29
ANEK_IS_TRANSPORTING
@ ANEK_IS_TRANSPORTING
Definition:
explanation.h:31
ANEK_CITY_POP_LIMIT
@ ANEK_CITY_POP_LIMIT
Definition:
explanation.h:78
ANEK_TGT_IS_UNIQUE_ACT_HAS
@ ANEK_TGT_IS_UNIQUE_ACT_HAS
Definition:
explanation.h:83
common
explanation.h
Generated by
1.9.1