#include <effect.h>
Inheritance diagram for Effect_counter:
Public Member Functions | |
virtual void | run () |
Runs the effect. | |
void | param (int xpos, int ypos, int from, int digits, int groupspacing=5, RGBA *background=NULL, int marginx=0, int marginy=0, int shift=0, int digitsize=0, char *text=NULL) |
from and to are in seconds | |
Protected Member Functions | |
virtual void | step (int value) |
A callback method that's called by animate() every frame. | |
void | anim_part (int state, int frames) |
Protected Attributes | |
int | _xpos |
int | _ypos |
int | _from |
char * | _text |
int | _state |
int | _xfrom |
int | _textxfrom |
int | _textx |
int | _texty |
int | _countery |
int | _canvasy |
RollCount | _anim |
RGBA | _textbm |
RGBA | _canvas |
Static Protected Attributes | |
const int | _speed = 20 |
|
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. |