summaryrefslogtreecommitdiff
path: root/src/resources/horseinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/horseinfo.h')
-rw-r--r--src/resources/horseinfo.h28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/resources/horseinfo.h b/src/resources/horseinfo.h
index 4ff1dfb09..97bcdcc6f 100644
--- a/src/resources/horseinfo.h
+++ b/src/resources/horseinfo.h
@@ -24,6 +24,8 @@
#include "resources/sprite/spritereference.h"
+#include "resources/horseoffset.h"
+
#include "localconsts.h"
struct HorseInfo final
@@ -31,24 +33,24 @@ struct HorseInfo final
HorseInfo() :
downSprites(),
upSprites(),
- downOffsetX(0),
- downOffsetY(0),
- upOffsetX(0),
- upOffsetY(0),
- riderOffsetX(0),
- riderOffsetY(0)
- { }
+ offsets()
+ {
+ for (int f = 0; f < 10; f ++)
+ {
+ offsets[f].upOffsetX = 0;
+ offsets[f].upOffsetY = 0;
+ offsets[f].downOffsetX = 0;
+ offsets[f].downOffsetY = 0;
+ offsets[f].riderOffsetX = 0;
+ offsets[f].riderOffsetY = 0;
+ }
+ }
A_DELETE_COPY(HorseInfo)
std::vector<SpriteReference*> downSprites;
std::vector<SpriteReference*> upSprites;
- int downOffsetX;
- int downOffsetY;
- int upOffsetX;
- int upOffsetY;
- int riderOffsetX;
- int riderOffsetY;
+ HorseOffset offsets[10]; // by direction
};
#endif // RESOURCES_HORSEINFO_H