31 #ifndef SWORD25_ANIMATION_TEMPLATE_H 32 #define SWORD25_ANIMATION_TEMPLATE_H 38 #include "sword25/kernel/common.h" 39 #include "sword25/kernel/persistable.h" 40 #include "sword25/gfx/animationdescription.h" 44 class AnimationResource;
61 const Frame &getFrame(uint index)
const override {
62 assert(index < _frames.
size());
63 return _frames[index];
65 uint getFrameCount()
const override {
66 return _frames.
size();
68 void unlock()
override {
72 bool isValid()
const {
90 void setFrame(
int destIndex,
int srcIndex);
97 _animationType = type;
115 bool validateSourceIndex(uint index)
const;
116 bool validateDestIndex(uint index)
const;
void setAnimationType(Animation::ANIMATION_TYPES type)
Setzt den Animationstyp.
Definition: animationtemplate.h:96
void setFrame(int destIndex, int srcIndex)
Ändert einen bereits in der Animation vorhandenen Frame.
Definition: animationdescription.h:52
void setFPS(int FPS)
Setzt die Abspielgeschwindigkeit.
void addFrame(int index)
Fügt einen neuen Frame zur Animation hinzu.
Definition: animationdescription.h:40
Definition: animationtemplate.h:46
size_type size() const
Definition: array.h:315
Definition: animationresource.h:45
Definition: outputpersistenceblock.h:39