Crossfire Server, Trunk
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
i
j
k
m
n
o
p
r
s
t
u
v
Enumerations
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Enumerations
Enumerator
Properties
a
b
c
d
e
f
h
i
j
k
l
m
n
p
q
r
s
t
y
Related Functions
:
b
d
o
s
w
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
w
y
z
Typedefs
a
c
d
e
f
i
j
k
l
m
n
o
p
q
s
t
y
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
AnimationWrapper.cpp
Go to the documentation of this file.
1
/*
2
* Crossfire -- cooperative multi-player graphical RPG and adventure game
3
*
4
* Copyright (c) 2022 the Crossfire Development Team
5
*
6
* Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
7
* welcome to redistribute it under certain conditions. For details, please
8
* see COPYING and LICENSE.
9
*
10
* The authors can be reached via e-mail at <crossfire@metalforge.org>.
11
*/
12
13
#include "
AnimationWrapper.h
"
14
#include "../ResourcesManager.h"
15
#include "../CREPixmap.h"
16
#include "
assets/AssetWrapperPanel.h
"
17
18
AnimationWrapper::AnimationWrapper
(
AssetWrapper
*parent,
Animations
*
anim
,
ResourcesManager
*resourcesManager)
19
:
AssetTWrapper
(parent,
"Animation"
,
anim
), myResourcesManager(resourcesManager) {
20
}
21
22
AssetWrapper::PossibleUse
AnimationWrapper::uses
(
const
AssetWrapper
*asset, std::string &)
const
{
23
auto
face =
dynamic_cast<
const
FaceWrapper
*
>
(asset);
24
if
(face) {
25
for
(uint16_t f = 0; f <
myWrappedItem
->
num_animations
; f++) {
26
if
(face->wrappedItem() ==
myWrappedItem
->
faces
[f]) {
27
return
Uses
;
28
}
29
}
30
return
DoesntUse
;
31
}
32
return
DoesntUse
;
33
}
AssetTWrapper< Animations >::myWrappedItem
Animations * myWrappedItem
Definition:
AssetWrapper.h:104
ResourcesManager
Definition:
ResourcesManager.h:80
AssetWrapper::PossibleUse
PossibleUse
Definition:
AssetWrapper.h:32
AnimationWrapper::AnimationWrapper
AnimationWrapper(AssetWrapper *parent, Animations *anim, ResourcesManager *resourcesManager)
Definition:
AnimationWrapper.cpp:18
FaceWrapper
Definition:
FaceWrapper.h:24
AssetWrapper
Definition:
AssetWrapper.h:25
AnimationWrapper.h
AnimationWrapper::uses
virtual PossibleUse uses(const AssetWrapper *asset, std::string &) const override
Definition:
AnimationWrapper.cpp:22
AssetWrapper::Uses
@ Uses
Definition:
AssetWrapper.h:32
animate.anim
string anim
Definition:
animate.py:20
Animations::num_animations
uint8_t num_animations
Definition:
face.h:27
AssetWrapperPanel.h
Animations::faces
const Face ** faces
Definition:
face.h:30
Animations
Definition:
face.h:25
AssetWrapper::DoesntUse
@ DoesntUse
Definition:
AssetWrapper.h:32
AssetTWrapper
Definition:
AssetWrapper.h:94
crossfire-crossfire-server
utils
cre
animations
AnimationWrapper.cpp
Generated by
1.8.17