Crossfire Server, Trunk
|
#include <AnimationControl.h>
Public Member Functions | |
AnimationControl (QWidget *parent) | |
void | setAnimation (const Animations *animation, int facings=-1) |
Protected Member Functions | |
void | display (const Animations *animation, int facings=-1) |
Protected Attributes | |
const Animations * | myAnimation |
int | myFacings |
int | myLastStep |
int | myStep |
QTimer * | myTimer |
QList< AnimationWidget * > | myWidgets |
Private Slots | |
void | step () |
Widget displaying all directions of an animation.
Definition at line 27 of file AnimationControl.h.
AnimationControl::AnimationControl | ( | QWidget * | parent | ) |
Definition at line 19 of file AnimationControl.cpp.
References freearr_x, freearr_y, myAnimation, myLastStep, myStep, myTimer, myWidgets, and step().
|
protected |
Definition at line 49 of file AnimationControl.cpp.
References Animations::faces, dragon_attune::faces, Animations::facings, make_face_from_files::facings, myFacings, myWidgets, Animations::num_animations, and Face::number.
Referenced by setAnimation().
void AnimationControl::setAnimation | ( | const Animations * | animation, |
int | facings = -1 |
||
) |
Define the animation to display.
animation | what to display, must not be NULL. |
facings | if -1 then uses the facings of the animation, else number of facings to display. |
Definition at line 41 of file AnimationControl.cpp.
References display(), make_face_from_files::facings, myAnimation, and myTimer.
Referenced by ArtifactPanel::artifactChanged(), and AnimationPanel::updateItem().
|
privateslot |
Definition at line 94 of file AnimationControl.cpp.
References myAnimation, and myWidgets.
Referenced by AnimationControl().
|
protected |
Definition at line 41 of file AnimationControl.h.
Referenced by AnimationControl(), setAnimation(), and step().
|
protected |
Definition at line 44 of file AnimationControl.h.
Referenced by display().
|
protected |
Definition at line 43 of file AnimationControl.h.
Referenced by AnimationControl().
|
protected |
Definition at line 42 of file AnimationControl.h.
Referenced by AnimationControl().
|
protected |
Definition at line 48 of file AnimationControl.h.
Referenced by AnimationControl(), and setAnimation().
|
protected |
Definition at line 47 of file AnimationControl.h.
Referenced by AnimationControl(), display(), and step().