ShowOneSprite Class Reference

#include <ShowOneSprite.h>

Inheritance diagram for ShowOneSprite:

Sprite List of all members.

Public Member Functions

 ShowOneSprite (std::string filename, List *spriteInfo)
 ShowOneSprite (ShowOneSprite *sprite)
 ~ShowOneSprite ()
Spriteinstance ()
virtual void reset ()
virtual void draw (int x, int y, bool origin=LEVEL)
void show (int index)

Protected Attributes

std::vector< Sprite * > _sprites
std::vector< Sprite * > _createdSprites
int _index

Detailed Description

Definition at line 10 of file ShowOneSprite.h.


Constructor & Destructor Documentation

ShowOneSprite::ShowOneSprite std::string  filename,
List spriteInfo
 

Definition at line 5 of file ShowOneSprite.cpp.

References Sprite::_filename, List::empty(), List::firstList(), Sprite::loadSprite(), and List::rest().

Referenced by instance().

ShowOneSprite::ShowOneSprite ShowOneSprite sprite  ) 
 

Definition at line 50 of file ShowOneSprite.cpp.

References _sprites.

ShowOneSprite::~ShowOneSprite  ) 
 

Definition at line 44 of file ShowOneSprite.cpp.

References _createdSprites.


Member Function Documentation

void ShowOneSprite::draw int  x,
int  y,
bool  origin = LEVEL
[virtual]
 

Reimplemented from Sprite.

Definition at line 56 of file ShowOneSprite.cpp.

References Sprite::_direction, _index, Sprite::_rect, and _sprites.

Referenced by Person::draw().

Sprite * ShowOneSprite::instance  )  [virtual]
 

Reimplemented from Sprite.

Definition at line 67 of file ShowOneSprite.cpp.

References _createdSprites, and ShowOneSprite().

void ShowOneSprite::reset  )  [virtual]
 

Reimplemented from Sprite.

Definition at line 74 of file ShowOneSprite.cpp.

References _sprites.

void ShowOneSprite::show int  index  )  [inline]
 

Definition at line 21 of file ShowOneSprite.h.

References _index.

Referenced by Person::draw().


Member Data Documentation

std::vector<Sprite *> ShowOneSprite::_createdSprites [protected]
 

Definition at line 25 of file ShowOneSprite.h.

Referenced by instance(), and ~ShowOneSprite().

int ShowOneSprite::_index [protected]
 

Definition at line 26 of file ShowOneSprite.h.

Referenced by draw(), and show().

std::vector<Sprite *> ShowOneSprite::_sprites [protected]
 

Definition at line 24 of file ShowOneSprite.h.

Referenced by draw(), reset(), and ShowOneSprite().


The documentation for this class was generated from the following files:
Generated on Sat Apr 22 15:05:21 2006 for ProjectX by  doxygen 1.4.6-NO