31 #ifndef SWORD25_ANIMATIONRESOURCE_H 32 #define SWORD25_ANIMATIONRESOURCE_H 34 #include "common/formats/xmlparser.h" 35 #include "sword25/kernel/common.h" 36 #include "sword25/kernel/resource.h" 37 #include "sword25/gfx/animationdescription.h" 38 #include "sword25/gfx/animation.h" 50 const Frame &getFrame(uint index)
const override {
51 return _frames[index];
53 uint getFrameCount()
const override {
54 return _frames.
size();
56 void unlock()
override {
60 Animation::ANIMATION_TYPES getAnimationType()
const {
61 return _animationType;
66 int getMillisPerFrame()
const {
67 return _millisPerFrame;
69 bool isScalingAllowed()
const {
70 return _scalingAllowed;
72 bool isAlphaAllowed()
const {
75 bool isColorModulationAllowed()
const {
76 return _colorModulationAllowed;
78 bool isValid()
const {
90 bool computeFeatures();
91 bool precacheAllFrames()
const;
101 XML_PROP(hotspotx,
true)
102 XML_PROP(hotspoty,
true)
103 XML_PROP(fliph,
false)
104 XML_PROP(flipv,
false)
112 bool parserCallback_animation(
ParserNode *node);
Definition: packagemanager.h:71
Definition: animationdescription.h:52
Definition: xmlparser.h:145
Definition: resource.h:43
Definition: xmlparser.h:98
Definition: animationdescription.h:40
size_type size() const
Definition: array.h:315
Definition: animationresource.h:45