Crossfire Server, Trunk
CREAnimationControl.h
Go to the documentation of this file.
1
#ifndef CREANIMATIONCONTROL_H
2
#define CREANIMATIONCONTROL_H
3
4
#include <QObject>
5
#include <QtWidgets>
6
7
extern
"C"
{
8
#include "
global.h
"
9
#include "
face.h
"
10
}
11
12
class
CREAnimationWidget
;
13
14
class
CREAnimationControl
:
public
QWidget
15
{
16
Q_OBJECT
17
18
public
:
19
CREAnimationControl
(QWidget* parent);
20
26
void
setAnimation
(
const
Animations
* animation,
int
facings
= -1);
27
28
protected
:
29
const
Animations
*
myAnimation
;
30
int
myStep
;
31
int
myLastStep
;
32
int
myFacings
;
33
34
void
display
(
const
Animations
* animation,
int
facings
= -1);
35
QList<CREAnimationWidget*>
myWidgets
;
36
QTimer*
myTimer
;
37
38
private
slots:
39
void
step
();
40
};
41
42
#endif // CREANIMATIONCONTROL_H
global.h
CREAnimationControl::step
void step()
Definition:
CREAnimationControl.cpp:82
face.h
CREAnimationControl::setAnimation
void setAnimation(const Animations *animation, int facings=-1)
Definition:
CREAnimationControl.cpp:29
make_face_from_files.facings
list facings
Definition:
make_face_from_files.py:38
CREAnimationControl::myAnimation
const Animations * myAnimation
Definition:
CREAnimationControl.h:29
CREAnimationControl::CREAnimationControl
CREAnimationControl(QWidget *parent)
Definition:
CREAnimationControl.cpp:7
CREAnimationControl
Definition:
CREAnimationControl.h:14
CREAnimationControl::myWidgets
QList< CREAnimationWidget * > myWidgets
Definition:
CREAnimationControl.h:35
CREAnimationControl::display
void display(const Animations *animation, int facings=-1)
Definition:
CREAnimationControl.cpp:37
animations_struct
Definition:
face.h:25
CREAnimationControl::myTimer
QTimer * myTimer
Definition:
CREAnimationControl.h:36
CREAnimationWidget
Definition:
CREAnimationWidget.h:7
CREAnimationControl::myLastStep
int myLastStep
Definition:
CREAnimationControl.h:31
CREAnimationControl::myFacings
int myFacings
Definition:
CREAnimationControl.h:32
CREAnimationControl::myStep
int myStep
Definition:
CREAnimationControl.h:30
crossfire-crossfire-server
utils
cre
CREAnimationControl.h
Generated by
1.8.17