summaryrefslogtreecommitdiff
path: root/src/resources/horseinfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-18 20:00:38 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-18 20:08:15 +0300
commitcf6a135902b647b565e782e9cb9626b7ac8b361b (patch)
treea6cebb27ca4f89ea5e559958dac2a4af9afa87d2 /src/resources/horseinfo.h
parenta3ad4ab670c7fa776375f569e9fe9d7fbe227245 (diff)
downloadplus-cf6a135902b647b565e782e9cb9626b7ac8b361b.tar.gz
plus-cf6a135902b647b565e782e9cb9626b7ac8b361b.tar.bz2
plus-cf6a135902b647b565e782e9cb9626b7ac8b361b.tar.xz
plus-cf6a135902b647b565e782e9cb9626b7ac8b361b.zip
Add support for multiply sprites in each horse part.
Also fix horse sprites actions issue.
Diffstat (limited to 'src/resources/horseinfo.h')
-rw-r--r--src/resources/horseinfo.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/resources/horseinfo.h b/src/resources/horseinfo.h
index 860700124..8a96902d8 100644
--- a/src/resources/horseinfo.h
+++ b/src/resources/horseinfo.h
@@ -22,15 +22,15 @@
#ifndef RESOURCES_HORSEINFO_H
#define RESOURCES_HORSEINFO_H
-#include "localconsts.h"
+#include "resources/spritereference.h"
+
+#include <vector>
-class AnimatedSprite;
+#include "localconsts.h"
struct HorseInfo final
{
HorseInfo() :
- downSprite(nullptr),
- upSprite(nullptr),
downOffsetX(0),
downOffsetY(0),
upOffsetX(0),
@@ -39,8 +39,8 @@ struct HorseInfo final
A_DELETE_COPY(HorseInfo)
- AnimatedSprite *downSprite;
- AnimatedSprite *upSprite;
+ std::vector<SpriteReference*> downSprites;
+ std::vector<SpriteReference*> upSprites;
int downOffsetX;
int downOffsetY;
int upOffsetX;