Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

Drawable Class Reference

Drawable is an interface class representing a drawable object on the Map. More...

#include <Drawable.h>

Inheritance diagram for Drawable:

Effect Entity Particle Bomb Character Explosion Powerup HomingBomb ThrownBomb List of all members.

Public Methods

virtual ~Drawable ()
virtual void draw (const Point &anchor)=0
 Draw this object on the screen, given the anchor point on the screen, which is defined as the center of the object's contact with the ground.

virtual const RectgetPosition () const=0
 Get the current position on the map.

virtual float getHeight () const
 Returns the height of the object.

virtual bool needsTransform () const
 A method that returns true if the Drawable will be drawing pre-transformed (XYZRHW) and pre-lit vertices, and its anchor needs transforming due to viewport changes.


Protected Methods

 Drawable ()

Detailed Description

Drawable is an interface class representing a drawable object on the Map.

A Drawable object must have a position.


Constructor & Destructor Documentation

virtual Drawable::~Drawable   [inline, virtual]
 

Drawable::Drawable   [inline, protected]
 


Member Function Documentation

virtual void Drawable::draw const Point   anchor [pure virtual]
 

Draw this object on the screen, given the anchor point on the screen, which is defined as the center of the object's contact with the ground.

Implemented in Bomb, Character, Effect, Entity, Explosion, HomingBomb, Particle, Powerup, and ThrownBomb.

virtual float Drawable::getHeight   const [inline, virtual]
 

Returns the height of the object.

If the returned number is negative (the default implementation), the object's height is taken to be the tile's height when it is drawn.

If the number is 0.0f or greater, the height given is taken to be the absolute height, and the tile's height will not be taken into consideration.

The default implementation of getHeight returns a negative number.

Reimplemented in Bomb, Character, Explosion, Particle, and Powerup.

virtual const Rect& Drawable::getPosition   [pure virtual]
 

Get the current position on the map.

Returns:
the current position on the map

Implemented in Effect, Entity, and Particle.

virtual bool Drawable::needsTransform   const [inline, virtual]
 

A method that returns true if the Drawable will be drawing pre-transformed (XYZRHW) and pre-lit vertices, and its anchor needs transforming due to viewport changes.

Reimplemented in Particle.


The documentation for this class was generated from the following file:
Generated on Tue Mar 4 02:29:26 2003 for SuperIsoBomb by doxygen1.2.18