File: AnimationFactory.h

package info (click to toggle)
hannah 1.0-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 8,712 kB
  • ctags: 281
  • sloc: cpp: 2,210; sh: 214; makefile: 117
file content (20 lines) | stat: -rw-r--r-- 431 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _ANIMATION_FACTORY_
#define _ANIMATION_FACTORY_

#include "Animation.h"

class AnimationFactory{
	public:
		AnimationFactory();
		virtual ~AnimationFactory();
		Animation* getByName(const char* name);
		Animation* getByNumber(unsigned int n);
		void loadAnimation(char* spriteName, char* path, bool loop, char* knownAs);
		Animation* getLast();
		int size();
		void list();
	private:
		vector<Animation*> store;
};

#endif