#include <EventAnimation.h>
Inherits EventInterface.
Inheritance diagram for EventAnimation:
Public Member Functions | |
EventAnimation (Texture *p_texture, int p_delta) | |
Standard constructor. | |
virtual | ~EventAnimation () |
Standard desstructor. | |
virtual int | compute (Level *p_level) |
Computes the logic for the event. | |
Public Attributes | |
Texture * | texture |
Holds the texture that will be processed. | |
int | delta |
Holds the delta for seqeunze processing. |
Definition at line 31 of file EventAnimation.h.
EventAnimation::EventAnimation | ( | Texture * | p_texture, | |
int | p_delta | |||
) |
Standard constructor.
p_texture | Animation to control. | |
p_delta | The amount of pictures to change. |
Definition at line 25 of file EventAnimation.cpp.
EventAnimation::~EventAnimation | ( | ) | [virtual] |
int EventAnimation::compute | ( | Level * | p_level | ) | [virtual] |
Computes the logic for the event.
p_level | Pointer to the Level. |
Implements EventInterface.
Definition at line 35 of file EventAnimation.cpp.
References delta, Texture::sequence, and texture.
Holds the texture that will be processed.
Definition at line 57 of file EventAnimation.h.
Referenced by compute(), and EventAnimation().
Holds the delta for seqeunze processing.
Definition at line 62 of file EventAnimation.h.
Referenced by compute(), and EventAnimation().