|
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_TYPE(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
|
|
|
#: .. warning:: |
|
47
|
|
|
#: air attack is not present in game. It is calculated as ``NORMFLY`` |
|
48
|
|
|
#: with a target |
|
49
|
|
|
AIR_ATTACK = FlightWaypointTypeConstant( |
|
50
|
|
|
"X_AIR_ATTACK", |
|
51
|
|
|
_("air attack"), |
|
52
|
|
|
) |
|
53
|
|
|
GROUND_ATTACK = FlightWaypointTypeConstant( |
|
54
|
|
|
"GATTACK", |
|
55
|
|
|
_("ground attack"), |
|
56
|
|
|
) |
|
57
|
|
|
|
|
58
|
|
|
# Patrol ------------------------------------------------------------------ |
|
59
|
|
|
PATROL_TRIANGLE = FlightWaypointTypeConstant( |
|
60
|
|
|
"NORMFLY_401", |
|
61
|
|
|
_("patrol (triangle)"), |
|
62
|
|
|
) |
|
63
|
|
|
PATROL_SQUARE = FlightWaypointTypeConstant( |
|
64
|
|
|
"NORMFLY_402", |
|
65
|
|
|
_("patrol (square)"), |
|
66
|
|
|
) |
|
67
|
|
|
PATROL_PENTAGON = FlightWaypointTypeConstant( |
|
68
|
|
|
"NORMFLY_403", |
|
69
|
|
|
_("patrol (pentagon)"), |
|
70
|
|
|
) |
|
71
|
|
|
PATROL_HEXAGON = FlightWaypointTypeConstant( |
|
72
|
|
|
"NORMFLY_404", |
|
73
|
|
|
_("patrol (hexagon)"), |
|
74
|
|
|
) |
|
75
|
|
|
PATROL_RANDOM = FlightWaypointTypeConstant( |
|
76
|
|
|
"NORMFLY_405", |
|
77
|
|
|
_("patrol (random)"), |
|
78
|
|
|
) |
|
79
|
|
|
|
|
80
|
|
|
# Artillery spotter ------------------------------------------------------- |
|
81
|
|
|
ARTILLERY_SPOTTER = FlightWaypointTypeConstant( |
|
82
|
|
|
"NORMFLY_407", |
|
83
|
|
|
_("artillery spotter"), |
|
84
|
|
|
) |
|
85
|
|
|
|
|
86
|
|
|
# Langing ----------------------------------------------------------------- |
|
87
|
|
|
LANDING_ON_LEFT = FlightWaypointTypeConstant( |
|
88
|
|
|
"LANDING", |
|
89
|
|
|
_("landing (on left)"), |
|
90
|
|
|
) |
|
91
|
|
|
LANDING_ON_RIGHT = FlightWaypointTypeConstant( |
|
92
|
|
|
"LANDING_101", |
|
93
|
|
|
_("landing (on right)"), |
|
94
|
|
|
) |
|
95
|
|
|
LANDING_SHORT_ON_LEFT = FlightWaypointTypeConstant( |
|
96
|
|
|
"LANDING_102", |
|
97
|
|
|
_("landing (short on left)"), |
|
98
|
|
|
) |
|
99
|
|
|
LANDING_SHORT_ON_RIGHT = FlightWaypointTypeConstant( |
|
100
|
|
|
"LANDING_103", |
|
101
|
|
|
_("landing (short on right)"), |
|
102
|
|
|
) |
|
103
|
|
|
LANDING_STRAIGHT = FlightWaypointTypeConstant( |
|
104
|
|
|
"LANDING_104", |
|
105
|
|
|
_("landing (straight)"), |
|
106
|
|
|
) |
|
107
|
|
|
|