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

AnimEvent Class Reference

Animation event. More...

#include <events.h>

Inheritance diagram for AnimEvent:

Inheritance graph
[legend]
Collaboration diagram for AnimEvent:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AnimEvent (Object *obj, Uint16 length, Uint16 edelay=0, Uint32 switchstate=NOTHING, Mix_Chunk *asound=NULL, EmptyAnimationPtr runanim=EmptyAnimationPtr())
virtual Uint16 update (Uint16 dt)
 Updates the events.
virtual void start ()
virtual void end ()
virtual void cancel ()

Protected Attributes

EmptyAnimationPtr anim
Mix_Chunk * sound

Detailed Description

Animation event.

An animated effect that usually ends when the animation is finnished.


Constructor & Destructor Documentation

AnimEvent::AnimEvent Object obj,
Uint16  length,
Uint16  edelay = 0,
Uint32  switchstate = NOTHING,
Mix_Chunk *  asound = NULL,
EmptyAnimationPtr  runanim = EmptyAnimationPtr()
 

Parameters:
obj Owner object of the AnimEvent
length Duration of the animation, once it's started
edelay Delay until the animation is started
switchstate States that will be switched when the animation starts/ends
asound Sound (Mix_Chunk) to be played when the event starts
runanim Animation to be run when the event starts
Todo:
Get rid of the delanim parameter


Member Function Documentation

virtual Uint16 AnimEvent::update Uint16  dt  )  [virtual]
 

Updates the events.

Returns:
Event state: either delayed (EV_DELAY), starting (EV_START), running (EV_RUN), stopping (EV_END) or canceled (EV_CANCEL)

Reimplemented from Event.


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