#include <uimanager.h>
Public Attributes | |
| ustring | texture |
| First texture image associated with this animation. | |
| ustring | texture2 |
| Second texture image associated with this animation. | |
| bool | texture1Active |
| Flag that enables drawing the first texture. | |
| bool | texture2Active |
| Flag that enables drawing the second texture. | |
| SDL_Surface * | surface |
| A direct pointer to texture. | |
| ustring | txt |
| Text for GUI elements. | |
| ustring | sfx |
| ID of a sound effect. | |
| Callback | callback |
| Callback for GUI clicks. | |
| int | w |
| Arbitrary width. | |
| int | h |
| Arbitrary height. | |
| Point | current |
| Current position of an element. | |
| Point | delta |
| Used to store difference of two other points. | |
| AnimType | type |
| Type of animation this struct represents. | |
| int | velocity |
| The pixel velocity of the animation. | |
| int | multiplier |
| Value included in calculations in animation speed. | |
| int | alpha |
| The current alpha value. | |
| int | ticks |
| Internal tick counter. | |
| int | speed |
| The duration of the animation in milliseconds. | |
| int | lastDraw |
| The last time this animation was drawn. | |
| Point | p1 |
| Points of origin for sync bounce animations. | |
| Point | p2 |
| Points of origin for sync bounce animations. | |
| int | leftLimit |
| Variables to store coordinates for side bounce animations. | |
| int | rightLimit |
| Variables to store coordinates for side bounce animations. | |
| int | topLimit |
| Variables to store coordinates for side bounce animations. | |
| int | bottomLimit |
| Variables to store coordinates for side bounce animations. | |
This is a general purpose struct that holds any pertinent data about an animation. Not all variables are used by some animations.
1.5.3