Crossfire Server, Trunk
CREAnimationControl Class Reference

#include <CREAnimationControl.h>

+ Inheritance diagram for CREAnimationControl:
+ Collaboration diagram for CREAnimationControl:

Public Member Functions

 CREAnimationControl (QWidget *parent)
 
void setAnimation (const Animations *animation, int facings=-1)
 

Protected Member Functions

void display (const Animations *animation, int facings=-1)
 

Protected Attributes

const AnimationsmyAnimation
 
int myFacings
 
int myLastStep
 
int myStep
 
QTimer * myTimer
 
QList< CREAnimationWidget * > myWidgets
 

Private Slots

void step ()
 

Detailed Description

Definition at line 14 of file CREAnimationControl.h.

Constructor & Destructor Documentation

◆ CREAnimationControl()

CREAnimationControl::CREAnimationControl ( QWidget *  parent)

Definition at line 7 of file CREAnimationControl.cpp.

References freearr_x, freearr_y, myAnimation, myLastStep, myStep, myTimer, myWidgets, and step().

+ Here is the call graph for this function:

Member Function Documentation

◆ display()

void CREAnimationControl::display ( const Animations animation,
int  facings = -1 
)
protected

◆ setAnimation()

void CREAnimationControl::setAnimation ( const Animations animation,
int  facings = -1 
)

Define the animation to display.

Parameters
animationwhat to display, must not be NULL.
facingsif -1 then uses the facings of the animation, else number of facings to display.

Definition at line 29 of file CREAnimationControl.cpp.

References display(), make_face_from_files::facings, myAnimation, and myTimer.

Referenced by CREArtifactPanel::artifactChanged(), and CREAnimationPanel::setItem().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ step

void CREAnimationControl::step ( )
privateslot

Definition at line 82 of file CREAnimationControl.cpp.

References myAnimation, and myWidgets.

Referenced by CREAnimationControl().

+ Here is the caller graph for this function:

Field Documentation

◆ myAnimation

const Animations* CREAnimationControl::myAnimation
protected

Definition at line 29 of file CREAnimationControl.h.

Referenced by CREAnimationControl(), setAnimation(), and step().

◆ myFacings

int CREAnimationControl::myFacings
protected

Definition at line 32 of file CREAnimationControl.h.

Referenced by display().

◆ myLastStep

int CREAnimationControl::myLastStep
protected

Definition at line 31 of file CREAnimationControl.h.

Referenced by CREAnimationControl().

◆ myStep

int CREAnimationControl::myStep
protected

Definition at line 30 of file CREAnimationControl.h.

Referenced by CREAnimationControl().

◆ myTimer

QTimer* CREAnimationControl::myTimer
protected

Definition at line 36 of file CREAnimationControl.h.

Referenced by CREAnimationControl(), and setAnimation().

◆ myWidgets

QList<CREAnimationWidget*> CREAnimationControl::myWidgets
protected

Definition at line 35 of file CREAnimationControl.h.

Referenced by CREAnimationControl(), display(), and step().


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