1
|
|
|
from candv import Values |
2
|
|
|
from candv import VerboseValueConstant |
3
|
|
|
from candv import with_constant_class |
4
|
|
|
|
5
|
|
|
from ._translations import gettext_lazy as _ |
6
|
|
|
from ._utils import export |
7
|
|
|
|
8
|
|
|
|
9
|
|
|
@export |
10
|
|
|
class FlightWaypointTypeConstant(VerboseValueConstant): |
11
|
|
|
... |
12
|
|
|
|
13
|
|
|
|
14
|
|
|
@export |
15
|
|
|
class FLIGHT_WAYPOINT_TYPES(with_constant_class(FlightWaypointTypeConstant), Values): |
16
|
|
|
|
17
|
|
|
# Take-off ---------------------------------------------------------------- |
18
|
|
|
TAKEOFF_NORMAL = FlightWaypointTypeConstant( |
19
|
|
|
"TAKEOFF", |
20
|
|
|
_("takeoff (normal)"), |
21
|
|
|
) |
22
|
|
|
TAKEOFF_PAIR = FlightWaypointTypeConstant( |
23
|
|
|
"TAKEOFF_002", |
24
|
|
|
_("takeoff (pair)"), |
25
|
|
|
) |
26
|
|
|
TAKEOFF_IN_LINE = FlightWaypointTypeConstant( |
27
|
|
|
"TAKEOFF_003", |
28
|
|
|
_("takeoff (in line)"), |
29
|
|
|
) |
30
|
|
|
TAKEOFF_TAXIING = FlightWaypointTypeConstant( |
31
|
|
|
"TAKEOFF_004", |
32
|
|
|
_("takeoff (taxiing)"), |
33
|
|
|
) |
34
|
|
|
TAKEOFF_TAXIING_FROM_STATIC = FlightWaypointTypeConstant( |
35
|
|
|
"TAKEOFF_005", |
36
|
|
|
_("takeoff (taxiing from static)"), |
37
|
|
|
) |
38
|
|
|
|
39
|
|
|
# Normal flight ----------------------------------------------------------- |
40
|
|
|
NORMAL = FlightWaypointTypeConstant( |
41
|
|
|
"NORMFLY", |
42
|
|
|
_("normal"), |
43
|
|
|
) |
44
|
|
|
|
45
|
|
|
# Attack ------------------------------------------------------------------ |
46
|
|
|
AIR_ATTACK = FlightWaypointTypeConstant( |
47
|
|
|
"X_AIR_ATTACK", |
48
|
|
|
_("air attack"), |
49
|
|
|
) |
50
|
|
|
""" |
51
|
|
|
.. warning:: |
52
|
|
|
|
53
|
|
|
"Air attack" is not present in the game. It is calculated as ``NORMFLY`` |
54
|
|
|
with a target. |
55
|
|
|
|
56
|
|
|
""" |
57
|
|
|
|
58
|
|
|
GROUND_ATTACK = FlightWaypointTypeConstant( |
59
|
|
|
"GATTACK", |
60
|
|
|
_("ground attack"), |
61
|
|
|
) |
62
|
|
|
|
63
|
|
|
# Patrol ------------------------------------------------------------------ |
64
|
|
|
PATROL_TRIANGLE = FlightWaypointTypeConstant( |
65
|
|
|
"NORMFLY_401", |
66
|
|
|
_("patrol (triangle)"), |
67
|
|
|
) |
68
|
|
|
PATROL_SQUARE = FlightWaypointTypeConstant( |
69
|
|
|
"NORMFLY_402", |
70
|
|
|
_("patrol (square)"), |
71
|
|
|
) |
72
|
|
|
PATROL_PENTAGON = FlightWaypointTypeConstant( |
73
|
|
|
"NORMFLY_403", |
74
|
|
|
_("patrol (pentagon)"), |
75
|
|
|
) |
76
|
|
|
PATROL_HEXAGON = FlightWaypointTypeConstant( |
77
|
|
|
"NORMFLY_404", |
78
|
|
|
_("patrol (hexagon)"), |
79
|
|
|
) |
80
|
|
|
PATROL_RANDOM = FlightWaypointTypeConstant( |
81
|
|
|
"NORMFLY_405", |
82
|
|
|
_("patrol (random)"), |
83
|
|
|
) |
84
|
|
|
|
85
|
|
|
# Artillery spotter ------------------------------------------------------- |
86
|
|
|
ARTILLERY_SPOTTER = FlightWaypointTypeConstant( |
87
|
|
|
"NORMFLY_407", |
88
|
|
|
_("artillery spotter"), |
89
|
|
|
) |
90
|
|
|
|
91
|
|
|
# Langing ----------------------------------------------------------------- |
92
|
|
|
LANDING_ON_LEFT = FlightWaypointTypeConstant( |
93
|
|
|
"LANDING", |
94
|
|
|
_("landing (on left)"), |
95
|
|
|
) |
96
|
|
|
LANDING_ON_RIGHT = FlightWaypointTypeConstant( |
97
|
|
|
"LANDING_101", |
98
|
|
|
_("landing (on right)"), |
99
|
|
|
) |
100
|
|
|
LANDING_SHORT_ON_LEFT = FlightWaypointTypeConstant( |
101
|
|
|
"LANDING_102", |
102
|
|
|
_("landing (short on left)"), |
103
|
|
|
) |
104
|
|
|
LANDING_SHORT_ON_RIGHT = FlightWaypointTypeConstant( |
105
|
|
|
"LANDING_103", |
106
|
|
|
_("landing (short on right)"), |
107
|
|
|
) |
108
|
|
|
LANDING_STRAIGHT = FlightWaypointTypeConstant( |
109
|
|
|
"LANDING_104", |
110
|
|
|
_("landing (straight)"), |
111
|
|
|
) |
112
|
|
|
|