#include <AnimationSprite.h>
Inherits Graphic.
Public Member Functions | |
| AnimationSprite () | |
| The angle the image is to be rotated at, this is a fixed point integer. | |
| AnimationSprite (int type) | |
| Creates a sprite and places it offscreen. | |
| AnimationSprite (int type, Point location) | |
| AnimationSprite (int type, int x, int y) | |
| ~AnimationSprite () | |
| void | draw (BITMAP *canvas, Point offset) |
| Draws this object's bitmap, with transparency set to alpha. | |
| void | setAngle (int angle) |
| Converts a given integer angle into a fixed point integer. The given angle should be in [0,255]. | |
| int | getAngle () |
| Returns the angle as an integer. | |
Protected Attributes | |
| BITMAP * | sprite |
| The image this object will display. | |
| int | type |
| A code, specified by an enum, that describes what kind of TransparentSprite this is. | |
| fixed | angle |
| AnimationSprite::AnimationSprite | ( | ) |
The angle the image is to be rotated at, this is a fixed point integer.
Creates a null AnimationSprite.
| AnimationSprite::AnimationSprite | ( | int | type | ) |
Creates a sprite and places it offscreen.
| AnimationSprite::AnimationSprite | ( | int | type, | |
| Point | location | |||
| ) |
| AnimationSprite::AnimationSprite | ( | int | type, | |
| int | x, | |||
| int | y | |||
| ) |
| AnimationSprite::~AnimationSprite | ( | ) |
| void AnimationSprite::draw | ( | BITMAP * | canvas, | |
| Point | offset | |||
| ) | [virtual] |
| int AnimationSprite::getAngle | ( | ) |
Returns the angle as an integer.
| void AnimationSprite::setAngle | ( | int | angle | ) |
Converts a given integer angle into a fixed point integer. The given angle should be in [0,255].
fixed AnimationSprite::angle [protected] |
BITMAP* AnimationSprite::sprite [protected] |
The image this object will display.
int AnimationSprite::type [protected] |
A code, specified by an enum, that describes what kind of TransparentSprite this is.
1.5.7.1