GCC Code Coverage Report
Directory: src/ Exec Total Coverage
File: src/input/pages/move.cpp Lines: 50 50 100.0 %
Date: 2021-03-17 Branches: 190 380 50.0 %

Line Branch Exec Source
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
2
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
2
        strprintf(N_("Move to point Shortcut %d"), 1),
115
        InputAction::MOVE_TO_POINT_1,
116
        "",
117
    },
118
    {
119
        // TRANSLATORS: input action name
120
2
        strprintf(N_("Move to point Shortcut %d"), 2),
121
        InputAction::MOVE_TO_POINT_2,
122
        "",
123
    },
124
    {
125
        // TRANSLATORS: input action name
126
2
        strprintf(N_("Move to point Shortcut %d"), 3),
127
        InputAction::MOVE_TO_POINT_3,
128
        "",
129
    },
130
    {
131
        // TRANSLATORS: input action name
132
2
        strprintf(N_("Move to point Shortcut %d"), 4),
133
        InputAction::MOVE_TO_POINT_4,
134
        "",
135
    },
136
    {
137
        // TRANSLATORS: input action name
138
2
        strprintf(N_("Move to point Shortcut %d"), 5),
139
        InputAction::MOVE_TO_POINT_5,
140
        "",
141
    },
142
    {
143
        // TRANSLATORS: input action name
144
2
        strprintf(N_("Move to point Shortcut %d"), 6),
145
        InputAction::MOVE_TO_POINT_6,
146
        "",
147
    },
148
    {
149
        // TRANSLATORS: input action name
150
2
        strprintf(N_("Move to point Shortcut %d"), 7),
151
        InputAction::MOVE_TO_POINT_7,
152
        "",
153
    },
154
    {
155
        // TRANSLATORS: input action name
156
2
        strprintf(N_("Move to point Shortcut %d"), 8),
157
        InputAction::MOVE_TO_POINT_8,
158
        "",
159
    },
160
    {
161
        // TRANSLATORS: input action name
162
2
        strprintf(N_("Move to point Shortcut %d"), 9),
163
        InputAction::MOVE_TO_POINT_9,
164
        "",
165
    },
166
    {
167
        // TRANSLATORS: input action name
168
2
        strprintf(N_("Move to point Shortcut %d"), 10),
169
        InputAction::MOVE_TO_POINT_10,
170
        "",
171
    },
172
    {
173
        // TRANSLATORS: input action name
174
2
        strprintf(N_("Move to point Shortcut %d"), 11),
175
        InputAction::MOVE_TO_POINT_11,
176
        "",
177
    },
178
    {
179
        // TRANSLATORS: input action name
180
2
        strprintf(N_("Move to point Shortcut %d"), 12),
181
        InputAction::MOVE_TO_POINT_12,
182
        "",
183
    },
184
    {
185
        // TRANSLATORS: input action name
186
2
        strprintf(N_("Move to point Shortcut %d"), 13),
187
        InputAction::MOVE_TO_POINT_13,
188
        "",
189
    },
190
    {
191
        // TRANSLATORS: input action name
192
2
        strprintf(N_("Move to point Shortcut %d"), 14),
193
        InputAction::MOVE_TO_POINT_14,
194
        "",
195
    },
196
    {
197
        // TRANSLATORS: input action name
198
2
        strprintf(N_("Move to point Shortcut %d"), 15),
199
        InputAction::MOVE_TO_POINT_15,
200
        "",
201
    },
202
    {
203
        // TRANSLATORS: input action name
204
2
        strprintf(N_("Move to point Shortcut %d"), 16),
205
        InputAction::MOVE_TO_POINT_16,
206
        "",
207
    },
208
    {
209
        // TRANSLATORS: input action name
210
2
        strprintf(N_("Move to point Shortcut %d"), 17),
211
        InputAction::MOVE_TO_POINT_17,
212
        "",
213
    },
214
    {
215
        // TRANSLATORS: input action name
216
2
        strprintf(N_("Move to point Shortcut %d"), 18),
217
        InputAction::MOVE_TO_POINT_18,
218
        "",
219
    },
220
    {
221
        // TRANSLATORS: input action name
222
2
        strprintf(N_("Move to point Shortcut %d"), 19),
223
        InputAction::MOVE_TO_POINT_19,
224
        "",
225
    },
226
    {
227
        // TRANSLATORS: input action name
228
2
        strprintf(N_("Move to point Shortcut %d"), 20),
229
        InputAction::MOVE_TO_POINT_20,
230
        "",
231
    },
232
    {
233
        // TRANSLATORS: input action name
234
2
        strprintf(N_("Move to point Shortcut %d"), 21),
235
        InputAction::MOVE_TO_POINT_21,
236
        "",
237
    },
238
    {
239
        // TRANSLATORS: input action name
240
2
        strprintf(N_("Move to point Shortcut %d"), 22),
241
        InputAction::MOVE_TO_POINT_22,
242
        "",
243
    },
244
    {
245
        // TRANSLATORS: input action name
246
2
        strprintf(N_("Move to point Shortcut %d"), 23),
247
        InputAction::MOVE_TO_POINT_23,
248
        "",
249
    },
250
    {
251
        // TRANSLATORS: input action name
252
2
        strprintf(N_("Move to point Shortcut %d"), 24),
253
        InputAction::MOVE_TO_POINT_24,
254
        "",
255
    },
256
    {
257
        // TRANSLATORS: input action name
258
2
        strprintf(N_("Move to point Shortcut %d"), 25),
259
        InputAction::MOVE_TO_POINT_25,
260
        "",
261
    },
262
    {
263
        // TRANSLATORS: input action name
264
2
        strprintf(N_("Move to point Shortcut %d"), 26),
265
        InputAction::MOVE_TO_POINT_26,
266
        "",
267
    },
268
    {
269
        // TRANSLATORS: input action name
270
2
        strprintf(N_("Move to point Shortcut %d"), 27),
271
        InputAction::MOVE_TO_POINT_27,
272
        "",
273
    },
274
    {
275
        // TRANSLATORS: input action name
276
2
        strprintf(N_("Move to point Shortcut %d"), 28),
277
        InputAction::MOVE_TO_POINT_28,
278
        "",
279
    },
280
    {
281
        // TRANSLATORS: input action name
282
2
        strprintf(N_("Move to point Shortcut %d"), 29),
283
        InputAction::MOVE_TO_POINT_29,
284
        "",
285
    },
286
    {
287
        // TRANSLATORS: input action name
288
2
        strprintf(N_("Move to point Shortcut %d"), 30),
289
        InputAction::MOVE_TO_POINT_30,
290
        "",
291
    },
292
    {
293
        // TRANSLATORS: input action name
294
2
        strprintf(N_("Move to point Shortcut %d"), 31),
295
        InputAction::MOVE_TO_POINT_31,
296
        "",
297
    },
298
    {
299
        // TRANSLATORS: input action name
300
2
        strprintf(N_("Move to point Shortcut %d"), 32),
301
        InputAction::MOVE_TO_POINT_32,
302
        "",
303
    },
304
    {
305
        // TRANSLATORS: input action name
306
2
        strprintf(N_("Move to point Shortcut %d"), 33),
307
        InputAction::MOVE_TO_POINT_33,
308
        "",
309
    },
310
    {
311
        // TRANSLATORS: input action name
312
2
        strprintf(N_("Move to point Shortcut %d"), 34),
313
        InputAction::MOVE_TO_POINT_34,
314
        "",
315
    },
316
    {
317
        // TRANSLATORS: input action name
318
2
        strprintf(N_("Move to point Shortcut %d"), 35),
319
        InputAction::MOVE_TO_POINT_35,
320
        "",
321
    },
322
    {
323
        // TRANSLATORS: input action name
324
2
        strprintf(N_("Move to point Shortcut %d"), 36),
325
        InputAction::MOVE_TO_POINT_36,
326
        "",
327
    },
328
    {
329
        // TRANSLATORS: input action name
330
2
        strprintf(N_("Move to point Shortcut %d"), 37),
331
        InputAction::MOVE_TO_POINT_37,
332
        "",
333
    },
334
    {
335
        // TRANSLATORS: input action name
336
2
        strprintf(N_("Move to point Shortcut %d"), 38),
337
        InputAction::MOVE_TO_POINT_38,
338
        "",
339
    },
340
    {
341
        // TRANSLATORS: input action name
342
2
        strprintf(N_("Move to point Shortcut %d"), 39),
343
        InputAction::MOVE_TO_POINT_39,
344
        "",
345
    },
346
    {
347
        // TRANSLATORS: input action name
348
2
        strprintf(N_("Move to point Shortcut %d"), 40),
349
        InputAction::MOVE_TO_POINT_40,
350
        "",
351
    },
352
    {
353
        // TRANSLATORS: input action name
354
2
        strprintf(N_("Move to point Shortcut %d"), 41),
355
        InputAction::MOVE_TO_POINT_41,
356
        "",
357
    },
358
    {
359
        // TRANSLATORS: input action name
360
2
        strprintf(N_("Move to point Shortcut %d"), 42),
361
        InputAction::MOVE_TO_POINT_42,
362
        "",
363
    },
364
    {
365
        // TRANSLATORS: input action name
366
2
        strprintf(N_("Move to point Shortcut %d"), 43),
367
        InputAction::MOVE_TO_POINT_43,
368
        "",
369
    },
370
    {
371
        // TRANSLATORS: input action name
372
2
        strprintf(N_("Move to point Shortcut %d"), 44),
373
        InputAction::MOVE_TO_POINT_44,
374
        "",
375
    },
376
    {
377
        // TRANSLATORS: input action name
378
2
        strprintf(N_("Move to point Shortcut %d"), 45),
379
        InputAction::MOVE_TO_POINT_45,
380
        "",
381
    },
382
    {
383
        // TRANSLATORS: input action name
384
2
        strprintf(N_("Move to point Shortcut %d"), 46),
385
        InputAction::MOVE_TO_POINT_46,
386
        "",
387
    },
388
    {
389
        // TRANSLATORS: input action name
390
2
        strprintf(N_("Move to point Shortcut %d"), 47),
391
        InputAction::MOVE_TO_POINT_47,
392
        "",
393
    },
394
    {
395
        // TRANSLATORS: input action name
396
2
        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






































































280
};