ImageParticle Class Reference

#include <imageparticle.h>

Inheritance diagram for ImageParticle:

Particle Sprite AnimationParticle

List of all members.


Detailed Description

A particle that uses an image for its visualization.

Definition at line 33 of file imageparticle.h.


Public Member Functions

 ImageParticle (Map *map, Image *image)
 Constructor.
 ~ImageParticle ()
 Destructor.
virtual void draw (Graphics *graphics, int offsetX, int offsetY) const
 Draws the particle image.

Protected Attributes

ImagemImage
 The image used for this particle.

Constructor & Destructor Documentation

ImageParticle::ImageParticle ( Map map,
Image image 
)

Constructor.

The image is reference counted by this particle.

Parameters:
map the map this particle appears on
image an Image instance, may not be NULL

Definition at line 28 of file imageparticle.cpp.

ImageParticle::~ImageParticle (  ) 

Destructor.

Definition at line 36 of file imageparticle.cpp.


Member Function Documentation

void ImageParticle::draw ( Graphics graphics,
int  offsetX,
int  offsetY 
) const [virtual]

Draws the particle image.

Reimplemented from Particle.

Definition at line 42 of file imageparticle.cpp.


Member Data Documentation

The image used for this particle.

Definition at line 55 of file imageparticle.h.


The documentation for this class was generated from the following files:

Generated on Sun Apr 26 17:30:43 2009 for The Mana World by  doxygen 1.5.5