AnimationSprite Class Reference

#include <AnimationSprite.h>

Inherits Graphic.

Collaboration diagram for AnimationSprite:

Collaboration graph
[legend]

List of all members.

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


Constructor & Destructor Documentation

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 (  ) 


Member Function Documentation

void AnimationSprite::draw ( BITMAP *  canvas,
Point  offset 
) [virtual]

Draws this object's bitmap, with transparency set to alpha.

Implements Graphic.

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].


Member Data Documentation

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.


The documentation for this class was generated from the following files:

Generated on Mon Mar 16 14:33:05 2009 for LearningGaming by  doxygen 1.5.7.1