summaryrefslogtreecommitdiff
path: root/src/resources/horseinfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-18 15:37:01 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-18 15:37:01 +0300
commitae7d05fce2107e762e84a287f33f2dbad60abd7d (patch)
treea9d8ce99e98eda697c2b4e8e19d8473b8fedc14a /src/resources/horseinfo.h
parent3e1eec6460461242ff6548f8c542e0c020d18c4a (diff)
downloadmv-ae7d05fce2107e762e84a287f33f2dbad60abd7d.tar.gz
mv-ae7d05fce2107e762e84a287f33f2dbad60abd7d.tar.bz2
mv-ae7d05fce2107e762e84a287f33f2dbad60abd7d.tar.xz
mv-ae7d05fce2107e762e84a287f33f2dbad60abd7d.zip
Split horse into two sprites before player and after player.
Diffstat (limited to 'src/resources/horseinfo.h')
-rw-r--r--src/resources/horseinfo.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/resources/horseinfo.h b/src/resources/horseinfo.h
index 262ecb7e7..860700124 100644
--- a/src/resources/horseinfo.h
+++ b/src/resources/horseinfo.h
@@ -29,16 +29,22 @@ class AnimatedSprite;
struct HorseInfo final
{
HorseInfo() :
- sprite(nullptr),
- offsetX(0),
- offsetY(0)
+ downSprite(nullptr),
+ upSprite(nullptr),
+ downOffsetX(0),
+ downOffsetY(0),
+ upOffsetX(0),
+ upOffsetY(0)
{ }
A_DELETE_COPY(HorseInfo)
- AnimatedSprite *sprite;
- int offsetX;
- int offsetY;
+ AnimatedSprite *downSprite;
+ AnimatedSprite *upSprite;
+ int downOffsetX;
+ int downOffsetY;
+ int upOffsetX;
+ int upOffsetY;
};
#endif // RESOURCES_HORSEINFO_H