#include <events.h>
Inheritance diagram for ERun:
Public Member Functions | |
ERun (Character *chr, Uint16 length, Sint16 edmax, Uint16 edelay=0, Uint32 switchstate=0, Mix_Chunk *esound=NULL, EmptyAnimationPtr runanim=EmptyAnimationPtr()) | |
Adds the initial speed. | |
virtual void | start () |
Forces the event to continue. | |
virtual void | end () |
virtual void | cancel () |
virtual void | reset () |
virtual Uint16 | update (Uint16 dt) |
If the event wasn't forced to continue it will shortly end. | |
Protected Attributes | |
Sint16 | dmax |
Sint16 | t_reset |
A special speed event that increases the horizontal speed after a while, has to be constantly maintained using reset().