#include <effect.h>
Inheritance diagram for Effect_move_animation:
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 |
|
|
|
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 Implements Effect. |
|
A callback method that's called by
That means it shouldn't take long to execute. Before Implements Effect. |