Overlay Animation.
More...
Overlay Animation.
The player's weapon and hands are shown using the Overlay system. It also handles the animation as an attack sequence is performed. There is one animation per weapon type.
- See Also
- http://www.amuletsandarmor.com/AALicense.txt
#define ANIMATION_IMAGE_NONE 0xFF |
#define ANIMATION_IMAGE_TRANSLUCENT 0x01 |
#define MAX_IMAGE_LENGTH 140 |
OverlayAnimate starts an animation cycle.
- Parameters
-
speed | – Speed of animation where 65536 is normal speed, 32768 is half, and 131072 is double. |
OverlayDraw is called to draw the current frame on the screen at the given offset and with the give bounds.
- Parameters
-
left | – Upper left of bounding view |
top | – Upper left of bounding view |
right | – Lower right of bounding view |
bottom | – Lower right of bounding view |
xOffset | – X Offset of picture |
yOffset | – Y Offset of picture |
OverlayFinish cleans up the overlay module afterwards.
OverlayInitialize sets up the basics for the overlay manager.
OverlaySetAnimation declares the animation to be used for the next overlay cycle and the overlay at the beginning.
- Parameters
-
animationNumber | – Number of the animation to use |
OverlaySetCallback declares the function to call when the overlay has completed the animation.
- Parameters
-
p_callback | – Callback to call when done |
OverlayUpdate updates the animation of the overlay (if there is one).