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"
44class 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 {
97 _animationType = type;
115 bool validateSourceIndex(uint index)
const;
116 bool validateDestIndex(uint index)
const;
size_type size() const
Definition: array.h:316
Definition: animationdescription.h:40
Definition: animationresource.h:45
Definition: animationtemplate.h:46
void setFPS(int FPS)
Setzt die Abspielgeschwindigkeit.
void setFrame(int destIndex, int srcIndex)
Ändert einen bereits in der Animation vorhandenen Frame.
void addFrame(int index)
Fügt einen neuen Frame zur Animation hinzu.
void setAnimationType(Animation::ANIMATION_TYPES type)
Setzt den Animationstyp.
Definition: animationtemplate.h:96
Definition: outputpersistenceblock.h:39
Definition: animationdescription.h:52