ManaPlus
src
input
pages
move.cpp
Go to the documentation of this file.
1
/*
2
* The ManaPlus Client
3
* Copyright (C) 2007 Joshua Langley <
[email protected]
>
4
* Copyright (C) 2009 The Mana World Development Team
5
* Copyright (C) 2009-2010 The Mana Developers
6
* Copyright (C) 2011-2019 The ManaPlus Developers
7
* Copyright (C) 2019-2021 Andrei Karas
8
*
9
* This file is part of The ManaPlus Client.
10
*
11
* This program is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation; either version 2 of the License, or
14
* any later version.
15
*
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
20
*
21
* You should have received a copy of the GNU General Public License
22
* along with this program. If not, see <http://www.gnu.org/licenses/>.
23
*/
24
25
#include "
gui/setupactiondata.h
"
26
27
#include "
utils/gettext.h
"
28
#include "
utils/stringutils.h
"
29
30
#include "
debug.h
"
31
32
SetupActionData
setupActionDataMove
[] =
33
{
34
{
35
// TRANSLATORS: input action name
36
N_
(
"Move Keys"
),
37
InputAction::NO_VALUE
,
38
""
,
39
},
40
{
41
// TRANSLATORS: input action name
42
N_
(
"Move player up"
),
43
InputAction::MOVE_UP
,
44
""
,
45
},
46
{
47
// TRANSLATORS: input action name
48
N_
(
"Move player down"
),
49
InputAction::MOVE_DOWN
,
50
""
,
51
},
52
{
53
// TRANSLATORS: input action name
54
N_
(
"Move player left"
),
55
InputAction::MOVE_LEFT
,
56
""
,
57
},
58
{
59
// TRANSLATORS: input action name
60
N_
(
"Move player right"
),
61
InputAction::MOVE_RIGHT
,
62
""
,
63
},
64
{
65
// TRANSLATORS: input action name
66
N_
(
"Move player forward"
),
67
InputAction::MOVE_FORWARD
,
68
""
,
69
},
70
{
71
// TRANSLATORS: input action name
72
N_
(
"Move pet up"
),
73
InputAction::PET_MOVE_UP
,
74
""
,
75
},
76
{
77
// TRANSLATORS: input action name
78
N_
(
"Move pet down"
),
79
InputAction::PET_MOVE_DOWN
,
80
""
,
81
},
82
{
83
// TRANSLATORS: input action name
84
N_
(
"Move pet left"
),
85
InputAction::PET_MOVE_LEFT
,
86
""
,
87
},
88
{
89
// TRANSLATORS: input action name
90
N_
(
"Move pet right"
),
91
InputAction::PET_MOVE_RIGHT
,
92
""
,
93
},
94
{
95
// TRANSLATORS: input action name
96
N_
(
"Move homunculus to master"
),
97
InputAction::HOMUNCULUS_TO_MASTER
,
98
""
,
99
},
100
{
101
// TRANSLATORS: input action name
102
N_
(
"Move mercenary to master"
),
103
InputAction::MERCENARY_TO_MASTER
,
104
""
,
105
},
106
{
107
// TRANSLATORS: input action name
108
N_
(
"Move to navigation point shortcuts"
),
109
InputAction::NO_VALUE
,
110
""
111
},
112
{
113
// TRANSLATORS: input action name
114
strprintf
(
N_
(
"Move to point Shortcut %d"
), 1),
115
InputAction::MOVE_TO_POINT_1
,
116
""
,
117
},
118
{
119
// TRANSLATORS: input action name
120
strprintf
(
N_
(
"Move to point Shortcut %d"
), 2),
121
InputAction::MOVE_TO_POINT_2
,
122
""
,
123
},
124
{
125
// TRANSLATORS: input action name
126
strprintf
(
N_
(
"Move to point Shortcut %d"
), 3),
127
InputAction::MOVE_TO_POINT_3
,
128
""
,
129
},
130
{
131
// TRANSLATORS: input action name
132
strprintf
(
N_
(
"Move to point Shortcut %d"
), 4),
133
InputAction::MOVE_TO_POINT_4
,
134
""
,
135
},
136
{
137
// TRANSLATORS: input action name
138
strprintf
(
N_
(
"Move to point Shortcut %d"
), 5),
139
InputAction::MOVE_TO_POINT_5
,
140
""
,
141
},
142
{
143
// TRANSLATORS: input action name
144
strprintf
(
N_
(
"Move to point Shortcut %d"
), 6),
145
InputAction::MOVE_TO_POINT_6
,
146
""
,
147
},
148
{
149
// TRANSLATORS: input action name
150
strprintf
(
N_
(
"Move to point Shortcut %d"
), 7),
151
InputAction::MOVE_TO_POINT_7
,
152
""
,
153
},
154
{
155
// TRANSLATORS: input action name
156
strprintf
(
N_
(
"Move to point Shortcut %d"
), 8),
157
InputAction::MOVE_TO_POINT_8
,
158
""
,
159
},
160
{
161
// TRANSLATORS: input action name
162
strprintf
(
N_
(
"Move to point Shortcut %d"
), 9),
163
InputAction::MOVE_TO_POINT_9
,
164
""
,
165
},
166
{
167
// TRANSLATORS: input action name
168
strprintf
(
N_
(
"Move to point Shortcut %d"
), 10),
169
InputAction::MOVE_TO_POINT_10
,
170
""
,
171
},
172
{
173
// TRANSLATORS: input action name
174
strprintf
(
N_
(
"Move to point Shortcut %d"
), 11),
175
InputAction::MOVE_TO_POINT_11
,
176
""
,
177
},
178
{
179
// TRANSLATORS: input action name
180
strprintf
(
N_
(
"Move to point Shortcut %d"
), 12),
181
InputAction::MOVE_TO_POINT_12
,
182
""
,
183
},
184
{
185
// TRANSLATORS: input action name
186
strprintf
(
N_
(
"Move to point Shortcut %d"
), 13),
187
InputAction::MOVE_TO_POINT_13
,
188
""
,
189
},
190
{
191
// TRANSLATORS: input action name
192
strprintf
(
N_
(
"Move to point Shortcut %d"
), 14),
193
InputAction::MOVE_TO_POINT_14
,
194
""
,
195
},
196
{
197
// TRANSLATORS: input action name
198
strprintf
(
N_
(
"Move to point Shortcut %d"
), 15),
199
InputAction::MOVE_TO_POINT_15
,
200
""
,
201
},
202
{
203
// TRANSLATORS: input action name
204
strprintf
(
N_
(
"Move to point Shortcut %d"
), 16),
205
InputAction::MOVE_TO_POINT_16
,
206
""
,
207
},
208
{
209
// TRANSLATORS: input action name
210
strprintf
(
N_
(
"Move to point Shortcut %d"
), 17),
211
InputAction::MOVE_TO_POINT_17
,
212
""
,
213
},
214
{
215
// TRANSLATORS: input action name
216
strprintf
(
N_
(
"Move to point Shortcut %d"
), 18),
217
InputAction::MOVE_TO_POINT_18
,
218
""
,
219
},
220
{
221
// TRANSLATORS: input action name
222
strprintf
(
N_
(
"Move to point Shortcut %d"
), 19),
223
InputAction::MOVE_TO_POINT_19
,
224
""
,
225
},
226
{
227
// TRANSLATORS: input action name
228
strprintf
(
N_
(
"Move to point Shortcut %d"
), 20),
229
InputAction::MOVE_TO_POINT_20
,
230
""
,
231
},
232
{
233
// TRANSLATORS: input action name
234
strprintf
(
N_
(
"Move to point Shortcut %d"
), 21),
235
InputAction::MOVE_TO_POINT_21
,
236
""
,
237
},
238
{
239
// TRANSLATORS: input action name
240
strprintf
(
N_
(
"Move to point Shortcut %d"
), 22),
241
InputAction::MOVE_TO_POINT_22
,
242
""
,
243
},
244
{
245
// TRANSLATORS: input action name
246
strprintf
(
N_
(
"Move to point Shortcut %d"
), 23),
247
InputAction::MOVE_TO_POINT_23
,
248
""
,
249
},
250
{
251
// TRANSLATORS: input action name
252
strprintf
(
N_
(
"Move to point Shortcut %d"
), 24),
253
InputAction::MOVE_TO_POINT_24
,
254
""
,
255
},
256
{
257
// TRANSLATORS: input action name
258
strprintf
(
N_
(
"Move to point Shortcut %d"
), 25),
259
InputAction::MOVE_TO_POINT_25
,
260
""
,
261
},
262
{
263
// TRANSLATORS: input action name
264
strprintf
(
N_
(
"Move to point Shortcut %d"
), 26),
265
InputAction::MOVE_TO_POINT_26
,
266
""
,
267
},
268
{
269
// TRANSLATORS: input action name
270
strprintf
(
N_
(
"Move to point Shortcut %d"
), 27),
271
InputAction::MOVE_TO_POINT_27
,
272
""
,
273
},
274
{
275
// TRANSLATORS: input action name
276
strprintf
(
N_
(
"Move to point Shortcut %d"
), 28),
277
InputAction::MOVE_TO_POINT_28
,
278
""
,
279
},
280
{
281
// TRANSLATORS: input action name
282
strprintf
(
N_
(
"Move to point Shortcut %d"
), 29),
283
InputAction::MOVE_TO_POINT_29
,
284
""
,
285
},
286
{
287
// TRANSLATORS: input action name
288
strprintf
(
N_
(
"Move to point Shortcut %d"
), 30),
289
InputAction::MOVE_TO_POINT_30
,
290
""
,
291
},
292
{
293
// TRANSLATORS: input action name
294
strprintf
(
N_
(
"Move to point Shortcut %d"
), 31),
295
InputAction::MOVE_TO_POINT_31
,
296
""
,
297
},
298
{
299
// TRANSLATORS: input action name
300
strprintf
(
N_
(
"Move to point Shortcut %d"
), 32),
301
InputAction::MOVE_TO_POINT_32
,
302
""
,
303
},
304
{
305
// TRANSLATORS: input action name
306
strprintf
(
N_
(
"Move to point Shortcut %d"
), 33),
307
InputAction::MOVE_TO_POINT_33
,
308
""
,
309
},
310
{
311
// TRANSLATORS: input action name
312
strprintf
(
N_
(
"Move to point Shortcut %d"
), 34),
313
InputAction::MOVE_TO_POINT_34
,
314
""
,
315
},
316
{
317
// TRANSLATORS: input action name
318
strprintf
(
N_
(
"Move to point Shortcut %d"
), 35),
319
InputAction::MOVE_TO_POINT_35
,
320
""
,
321
},
322
{
323
// TRANSLATORS: input action name
324
strprintf
(
N_
(
"Move to point Shortcut %d"
), 36),
325
InputAction::MOVE_TO_POINT_36
,
326
""
,
327
},
328
{
329
// TRANSLATORS: input action name
330
strprintf
(
N_
(
"Move to point Shortcut %d"
), 37),
331
InputAction::MOVE_TO_POINT_37
,
332
""
,
333
},
334
{
335
// TRANSLATORS: input action name
336
strprintf
(
N_
(
"Move to point Shortcut %d"
), 38),
337
InputAction::MOVE_TO_POINT_38
,
338
""
,
339
},
340
{
341
// TRANSLATORS: input action name
342
strprintf
(
N_
(
"Move to point Shortcut %d"
), 39),
343
InputAction::MOVE_TO_POINT_39
,
344
""
,
345
},
346
{
347
// TRANSLATORS: input action name
348
strprintf
(
N_
(
"Move to point Shortcut %d"
), 40),
349
InputAction::MOVE_TO_POINT_40
,
350
""
,
351
},
352
{
353
// TRANSLATORS: input action name
354
strprintf
(
N_
(
"Move to point Shortcut %d"
), 41),
355
InputAction::MOVE_TO_POINT_41
,
356
""
,
357
},
358
{
359
// TRANSLATORS: input action name
360
strprintf
(
N_
(
"Move to point Shortcut %d"
), 42),
361
InputAction::MOVE_TO_POINT_42
,
362
""
,
363
},
364
{
365
// TRANSLATORS: input action name
366
strprintf
(
N_
(
"Move to point Shortcut %d"
), 43),
367
InputAction::MOVE_TO_POINT_43
,
368
""
,
369
},
370
{
371
// TRANSLATORS: input action name
372
strprintf
(
N_
(
"Move to point Shortcut %d"
), 44),
373
InputAction::MOVE_TO_POINT_44
,
374
""
,
375
},
376
{
377
// TRANSLATORS: input action name
378
strprintf
(
N_
(
"Move to point Shortcut %d"
), 45),
379
InputAction::MOVE_TO_POINT_45
,
380
""
,
381
},
382
{
383
// TRANSLATORS: input action name
384
strprintf
(
N_
(
"Move to point Shortcut %d"
), 46),
385
InputAction::MOVE_TO_POINT_46
,
386
""
,
387
},
388
{
389
// TRANSLATORS: input action name
390
strprintf
(
N_
(
"Move to point Shortcut %d"
), 47),
391
InputAction::MOVE_TO_POINT_47
,
392
""
,
393
},
394
{
395
// TRANSLATORS: input action name
396
strprintf
(
N_
(
"Move to point Shortcut %d"
), 48),
397
InputAction::MOVE_TO_POINT_48
,
398
""
,
399
},
400
{
401
""
,
402
InputAction::NO_VALUE
,
403
""
404
}
405
};
debug.h
gettext.h
N_
#define N_(s)
Definition:
gettext.h:36
setupActionDataMove
SetupActionData setupActionDataMove[]
Definition:
move.cpp:32
InputAction::HOMUNCULUS_TO_MASTER
@ HOMUNCULUS_TO_MASTER
Definition:
inputaction.h:706
InputAction::MOVE_TO_POINT_45
@ MOVE_TO_POINT_45
Definition:
inputaction.h:259
InputAction::MOVE_RIGHT
@ MOVE_RIGHT
Definition:
inputaction.h:48
InputAction::MOVE_TO_POINT_34
@ MOVE_TO_POINT_34
Definition:
inputaction.h:248
InputAction::MOVE_TO_POINT_4
@ MOVE_TO_POINT_4
Definition:
inputaction.h:218
InputAction::MOVE_TO_POINT_30
@ MOVE_TO_POINT_30
Definition:
inputaction.h:244
InputAction::MOVE_TO_POINT_2
@ MOVE_TO_POINT_2
Definition:
inputaction.h:216
InputAction::MOVE_TO_POINT_22
@ MOVE_TO_POINT_22
Definition:
inputaction.h:236
InputAction::MOVE_TO_POINT_19
@ MOVE_TO_POINT_19
Definition:
inputaction.h:233
InputAction::MOVE_TO_POINT_8
@ MOVE_TO_POINT_8
Definition:
inputaction.h:222
InputAction::MOVE_TO_POINT_37
@ MOVE_TO_POINT_37
Definition:
inputaction.h:251
InputAction::MOVE_TO_POINT_25
@ MOVE_TO_POINT_25
Definition:
inputaction.h:239
InputAction::MOVE_TO_POINT_32
@ MOVE_TO_POINT_32
Definition:
inputaction.h:246
InputAction::MOVE_TO_POINT_47
@ MOVE_TO_POINT_47
Definition:
inputaction.h:261
InputAction::MERCENARY_TO_MASTER
@ MERCENARY_TO_MASTER
Definition:
inputaction.h:705
InputAction::MOVE_TO_POINT_6
@ MOVE_TO_POINT_6
Definition:
inputaction.h:220
InputAction::MOVE_TO_POINT_3
@ MOVE_TO_POINT_3
Definition:
inputaction.h:217
InputAction::MOVE_DOWN
@ MOVE_DOWN
Definition:
inputaction.h:46
InputAction::MOVE_TO_POINT_9
@ MOVE_TO_POINT_9
Definition:
inputaction.h:223
InputAction::MOVE_TO_POINT_27
@ MOVE_TO_POINT_27
Definition:
inputaction.h:241
InputAction::MOVE_TO_POINT_18
@ MOVE_TO_POINT_18
Definition:
inputaction.h:232
InputAction::MOVE_TO_POINT_15
@ MOVE_TO_POINT_15
Definition:
inputaction.h:229
InputAction::MOVE_TO_POINT_35
@ MOVE_TO_POINT_35
Definition:
inputaction.h:249
InputAction::MOVE_TO_POINT_12
@ MOVE_TO_POINT_12
Definition:
inputaction.h:226
InputAction::PET_MOVE_LEFT
@ PET_MOVE_LEFT
Definition:
inputaction.h:524
InputAction::MOVE_TO_POINT_11
@ MOVE_TO_POINT_11
Definition:
inputaction.h:225
InputAction::MOVE_TO_POINT_28
@ MOVE_TO_POINT_28
Definition:
inputaction.h:242
InputAction::MOVE_TO_POINT_5
@ MOVE_TO_POINT_5
Definition:
inputaction.h:219
InputAction::MOVE_TO_POINT_29
@ MOVE_TO_POINT_29
Definition:
inputaction.h:243
InputAction::MOVE_TO_POINT_26
@ MOVE_TO_POINT_26
Definition:
inputaction.h:240
InputAction::MOVE_TO_POINT_10
@ MOVE_TO_POINT_10
Definition:
inputaction.h:224
InputAction::MOVE_TO_POINT_31
@ MOVE_TO_POINT_31
Definition:
inputaction.h:245
InputAction::MOVE_TO_POINT_40
@ MOVE_TO_POINT_40
Definition:
inputaction.h:254
InputAction::MOVE_TO_POINT_43
@ MOVE_TO_POINT_43
Definition:
inputaction.h:257
InputAction::MOVE_TO_POINT_21
@ MOVE_TO_POINT_21
Definition:
inputaction.h:235
InputAction::MOVE_FORWARD
@ MOVE_FORWARD
Definition:
inputaction.h:319
InputAction::MOVE_TO_POINT_24
@ MOVE_TO_POINT_24
Definition:
inputaction.h:238
InputAction::MOVE_TO_POINT_1
@ MOVE_TO_POINT_1
Definition:
inputaction.h:215
InputAction::MOVE_TO_POINT_39
@ MOVE_TO_POINT_39
Definition:
inputaction.h:253
InputAction::MOVE_TO_POINT_44
@ MOVE_TO_POINT_44
Definition:
inputaction.h:258
InputAction::MOVE_TO_POINT_7
@ MOVE_TO_POINT_7
Definition:
inputaction.h:221
InputAction::MOVE_TO_POINT_20
@ MOVE_TO_POINT_20
Definition:
inputaction.h:234
InputAction::MOVE_TO_POINT_33
@ MOVE_TO_POINT_33
Definition:
inputaction.h:247
InputAction::MOVE_TO_POINT_42
@ MOVE_TO_POINT_42
Definition:
inputaction.h:256
InputAction::MOVE_UP
@ MOVE_UP
Definition:
inputaction.h:45
InputAction::MOVE_TO_POINT_16
@ MOVE_TO_POINT_16
Definition:
inputaction.h:230
InputAction::MOVE_TO_POINT_14
@ MOVE_TO_POINT_14
Definition:
inputaction.h:228
InputAction::MOVE_TO_POINT_36
@ MOVE_TO_POINT_36
Definition:
inputaction.h:250
InputAction::MOVE_TO_POINT_48
@ MOVE_TO_POINT_48
Definition:
inputaction.h:262
InputAction::MOVE_TO_POINT_17
@ MOVE_TO_POINT_17
Definition:
inputaction.h:231
InputAction::PET_MOVE_UP
@ PET_MOVE_UP
Definition:
inputaction.h:522
InputAction::MOVE_TO_POINT_46
@ MOVE_TO_POINT_46
Definition:
inputaction.h:260
InputAction::NO_VALUE
@ NO_VALUE
Definition:
inputaction.h:44
InputAction::MOVE_TO_POINT_41
@ MOVE_TO_POINT_41
Definition:
inputaction.h:255
InputAction::MOVE_LEFT
@ MOVE_LEFT
Definition:
inputaction.h:47
InputAction::PET_MOVE_RIGHT
@ PET_MOVE_RIGHT
Definition:
inputaction.h:525
InputAction::MOVE_TO_POINT_23
@ MOVE_TO_POINT_23
Definition:
inputaction.h:237
InputAction::MOVE_TO_POINT_38
@ MOVE_TO_POINT_38
Definition:
inputaction.h:252
InputAction::PET_MOVE_DOWN
@ PET_MOVE_DOWN
Definition:
inputaction.h:523
InputAction::MOVE_TO_POINT_13
@ MOVE_TO_POINT_13
Definition:
inputaction.h:227
setupactiondata.h
strprintf
std::string strprintf(const char *const format,...)
Definition:
stringutils.cpp:100
stringutils.h
SetupActionData
Definition:
setupactiondata.h:35
Generated on Wed Mar 17 2021 19:19:08 for ManaPlus by
1.9.1