Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ERun Class Reference

Delayed (accelerated) run event. More...

#include <events.h>

Inheritance diagram for ERun:

Inheritance graph
[legend]
Collaboration diagram for ERun:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Delayed (accelerated) run event.

A special speed event that increases the horizontal speed after a while, has to be constantly maintained using reset().


The documentation for this class was generated from the following file:
Generated on Sun Feb 5 13:02:36 2006 for Lost Penguins by doxygen 1.3.8