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

Effect_move_animation Class Reference

#include <effect.h>

Inheritance diagram for Effect_move_animation:

Effect List of all members.

Detailed Description

Move an Animation 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, Animation &anim, int alpha=0)

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 _alpha
Animation_anim


Member Function Documentation

void Effect_move_animation::param int  x1,
int  y1,
int  x2,
int  y2,
Animation anim,
int  alpha = 0
[inline]
 

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

void Effect_move_animation::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_animation::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