00001 #ifndef SHOWONESPRITE_H 00002 #define SHOWONESPRITE_H 00003 00004 #include <string> 00005 #include <vector> 00006 00007 #include "Sprite.h" 00008 #include "List.h" 00009 00010 class ShowOneSprite : public Sprite 00011 { 00012 public: 00013 ShowOneSprite( std::string filename, List *spriteInfo ); 00014 ShowOneSprite(ShowOneSprite *sprite); 00015 ~ShowOneSprite(); 00016 00017 Sprite *instance(); 00018 00019 virtual void reset(); 00020 virtual void draw(int x, int y, bool origin = LEVEL); 00021 void show(int index) {_index = index;} 00022 00023 protected: 00024 std::vector<Sprite *> _sprites; 00025 std::vector<Sprite *> _createdSprites; 00026 int _index; 00027 }; 00028 00029 #endif