Logo Search packages:      
Sourcecode: hannah version File versions  Download package


// Loads and stores an animation sequence

#ifndef _ANIMATION_H_
#define _ANIMATION_H_

//#define WIN32

#include "SDL.h"
#include "SDL_image.h"
#include <vector>

using namespace std;

class Animation{
            Animation(char* spritename, char *filename, bool loop, char* knownAs);
            virtual ~Animation();
            SDL_Surface* getFrame();
            SDL_Surface* getFrame(int fnum);
            char* getKnown();
            void reset();
            bool loop;
            bool finished;
            char* name;
            char* knownAs;
            int numframes;
            int currentframe;
            vector<SDL_Surface*> frames;
            int delay;


Generated by  Doxygen 1.6.0   Back to index