Crossfire Server, Trunk  R20513
Public Member Functions | Protected Member Functions | Protected Attributes | Private Slots
CREAnimationControl Class Reference

#include <CREAnimationControl.h>

Inheritance diagram for CREAnimationControl:
Inheritance graph
Collaboration diagram for CREAnimationControl:
Collaboration graph

Public Member Functions

 CREAnimationControl (QWidget *parent)
 
void setAnimation (const Animations *animation, int facings=-1)
 Define the animation to display. More...
 

Protected Member Functions

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

Protected Attributes

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

Private Slots

void step ()
 

Detailed Description

Definition at line 14 of file CREAnimationControl.h.

Constructor & Destructor Documentation

CREAnimationControl::CREAnimationControl ( QWidget *  parent)

Definition at line 7 of file CREAnimationControl.cpp.

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

Here is the call graph for this function:

Member Function Documentation

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

Definition at line 36 of file CREAnimationControl.cpp.

References animations_struct::faces, animations_struct::facings, myFacings, myWidgets, animations_struct::num_animations, and new_face_struct::number.

Referenced by setAnimation().

Here is the caller graph for this function:

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 30 of file CREAnimationControl.cpp.

References display(), and myAnimation.

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

Here is the call graph for this function:

Here is the caller graph for this function:

void CREAnimationControl::step ( )
privateslot

Definition at line 81 of file CREAnimationControl.cpp.

References myAnimation, and myWidgets.

Referenced by CREAnimationControl().

Here is the caller graph for this function:

Field Documentation

const Animations* CREAnimationControl::myAnimation
protected

Definition at line 29 of file CREAnimationControl.h.

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

int CREAnimationControl::myFacings
protected

Definition at line 32 of file CREAnimationControl.h.

Referenced by display().

int CREAnimationControl::myLastStep
protected

Definition at line 31 of file CREAnimationControl.h.

Referenced by CREAnimationControl().

int CREAnimationControl::myStep
protected

Definition at line 30 of file CREAnimationControl.h.

Referenced by CREAnimationControl().

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: