#include <changeableSprite.h>
Inherits Sprite.
Public Member Functions | |
| ChangeableSprite (int type, Point point) | |
| ChangeableSprite (int type) | |
| int | getType () |
| Returns the current type of the sprite. | |
| void | setType (int type) |
| Sets the type and image of the sprite to the given type. | |
| void | draw (BITMAP *canvas, Point offset) |
| The basic draw() function. | |
Protected Member Functions | |
| void | setSprite () |
| Sets the image of the sprite to correspond with the type. | |
Protected Attributes | |
| int | type |
| ChangeableSprite::ChangeableSprite | ( | int | type, | |
| Point | point | |||
| ) |
| ChangeableSprite::ChangeableSprite | ( | int | type | ) |
| void ChangeableSprite::draw | ( | BITMAP * | canvas, | |
| Point | offset | |||
| ) | [virtual] |
| int ChangeableSprite::getType | ( | ) |
| void ChangeableSprite::setSprite | ( | ) | [protected] |
Sets the image of the sprite to correspond with the type.
| void ChangeableSprite::setType | ( | int | type | ) |
Sets the type and image of the sprite to the given type.
int ChangeableSprite::type [protected] |
The type of the image of the sprite
Reimplemented from Sprite.
1.5.7.1