1 |
|
|
/* |
2 |
|
|
* The ManaPlus Client |
3 |
|
|
* Copyright (C) 2009 Aethyra Development Team |
4 |
|
|
* Copyright (C) 2011-2019 The ManaPlus Developers |
5 |
|
|
* |
6 |
|
|
* This file is part of The ManaPlus Client. |
7 |
|
|
* |
8 |
|
|
* This program is free software; you can redistribute it and/or modify |
9 |
|
|
* it under the terms of the GNU General Public License as published by |
10 |
|
|
* the Free Software Foundation; either version 2 of the License, or |
11 |
|
|
* any later version. |
12 |
|
|
* |
13 |
|
|
* This program is distributed in the hope that it will be useful, |
14 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 |
|
|
* GNU General Public License for more details. |
17 |
|
|
* |
18 |
|
|
* You should have received a copy of the GNU General Public License |
19 |
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
20 |
|
|
*/ |
21 |
|
|
|
22 |
|
|
#ifndef RESOURCES_HORSEINFO_H |
23 |
|
|
#define RESOURCES_HORSEINFO_H |
24 |
|
|
|
25 |
|
|
#include "resources/sprite/spritereference.h" |
26 |
|
|
|
27 |
|
|
#include "resources/horseoffset.h" |
28 |
|
|
|
29 |
|
|
#include "localconsts.h" |
30 |
|
|
|
31 |
|
3 |
struct HorseInfo final |
32 |
|
|
{ |
33 |
|
1 |
HorseInfo() : |
34 |
|
|
downSprites(), |
35 |
|
|
upSprites(), |
36 |
✓✓ |
13 |
offsets() |
37 |
|
|
{ |
38 |
✓✓ |
21 |
for (int f = 0; f < 10; f ++) |
39 |
|
|
{ |
40 |
|
10 |
offsets[f].upOffsetX = 0; |
41 |
|
10 |
offsets[f].upOffsetY = 0; |
42 |
|
10 |
offsets[f].downOffsetX = 0; |
43 |
|
10 |
offsets[f].downOffsetY = 0; |
44 |
|
10 |
offsets[f].riderOffsetX = 0; |
45 |
|
10 |
offsets[f].riderOffsetY = 0; |
46 |
|
|
} |
47 |
|
1 |
} |
48 |
|
|
|
49 |
|
|
A_DELETE_COPY(HorseInfo) |
50 |
|
|
|
51 |
|
|
STD_VECTOR<SpriteReference*> downSprites; |
52 |
|
|
STD_VECTOR<SpriteReference*> upSprites; |
53 |
|
|
HorseOffset offsets[10]; // by direction |
54 |
|
|
}; |
55 |
|
|
|
56 |
|
|
#endif // RESOURCES_HORSEINFO_H |