Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

Effect_move Class Reference

#include <effect.h>

Inheritance diagram for Effect_move:

Effect List of all members.

Detailed Description

Move a Bitmap from one part of the screen to another.

The speed of movement will be determined by the time limit given to the effect. Only bitmap types with alpha channels should be used, because they will be dragging a block of transparency behind them.


Public Member Functions

virtual void run ()
 Runs the effect.

void param (int x1, int y1, int x2, int y2, const Bitmap &bitmap)

Protected Member Functions

virtual void step (int value)
 A callback method that's called by animate() every frame.


Protected Attributes

int _x1
int _y1
int _x2
int _y2
int _distance
int _left
int _top
std::auto_ptr< Bitmap_orig_bitmap
std::auto_ptr< Bitmap_used_bitmap


Member Function Documentation

void Effect_move::param int  x1,
int  y1,
int  x2,
int  y2,
const Bitmap bitmap
[inline]
 

Parameters:
x1,y1 The initial coordinates
x2,y2 The final coordinates
bitmap The bitmap to be moved.

void Effect_move::run  )  [virtual]
 

Runs the effect.

It takes no parameters because it should be possible to run an effect without knowing its type, only knowing how long it will take. It should be possible to call run() more than once.

Implements Effect.

void Effect_move::step int  value  )  [protected, virtual]
 

A callback method that's called by animate() every frame.

That means it shouldn't take long to execute. Before animate() calls step() it sets Effect::_oldval to what value was at the last call.

Implements Effect.


The documentation for this class was generated from the following files:
Generated on Sun Oct 19 17:34:48 2003 for rve by doxygen 1.3.3