summaryrefslogtreecommitdiff
path: root/src/resources/animation.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-27 19:23:52 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-27 19:23:52 +0300
commita199f1aa431f872bc13c5df5a9afad0e52a1ee1d (patch)
treed98bc9d256f98714f0d9ebf635e7043900a10d58 /src/resources/animation.h
parent3d24b9f024dc9114165530aa58dc4a7832ca2753 (diff)
downloadManaVerse-a199f1aa431f872bc13c5df5a9afad0e52a1ee1d.tar.gz
ManaVerse-a199f1aa431f872bc13c5df5a9afad0e52a1ee1d.tar.bz2
ManaVerse-a199f1aa431f872bc13c5df5a9afad0e52a1ee1d.tar.xz
ManaVerse-a199f1aa431f872bc13c5df5a9afad0e52a1ee1d.zip
Add pause animation tag.
Example: <pause delay="10"/>
Diffstat (limited to 'src/resources/animation.h')
-rw-r--r--src/resources/animation.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/resources/animation.h b/src/resources/animation.h
index 53e9adbea..1d23b1608 100644
--- a/src/resources/animation.h
+++ b/src/resources/animation.h
@@ -40,7 +40,8 @@ struct Frame
ANIMATION = 0,
JUMP,
GOTO,
- LABEL
+ LABEL,
+ PAUSE
};
Image *image;
int delay;
@@ -102,6 +103,8 @@ class Animation
void addGoto(std::string name, int rand);
+ void addPause(int delay, int rand);
+
void setLastFrameDelay(int delay);
/**