Claypool

Courses

Publications

Students

Projects

Service

Downloads

Misc


Dragonfly: Sprite Class Reference
Dragonfly 2.2
A text-based game engine
Public Member Functions | Protected Member Functions | Protected Attributes

Sprite Class Reference

List of all members.

Public Member Functions

 Sprite (int max_frames)
 Max frame count fixed upon creation.
int getWidth ()
void setWidth (int new_width)
int getHeight ()
void setHeight (int new_height)
string getLabel ()
void setLabel (string new_label)
int getColor ()
void setColor (int new_color)
int getFrameCount ()
Frame getFrame (int frame_number)
int addFrame (Frame new_frame)

Protected Member Functions

 Sprite ()
 Sprite constructor always has one arg.

Protected Attributes

int width
 Sprite width.
int height
 Sprite height.
int max_frame_count
 Maximum number of frames sprite can have.
int frame_count
 Actual number of frames sprite has.
int color
 Optional color for entire sprite.
Frame * frame
 Array of frames.
string label
 Text label to identify sprite.

The documentation for this class was generated from the following file:
 All Classes Functions Variables Friends