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
RecipeListWrapper.h
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
#ifndef RECIPE_LIST_WRAPPER_H
14
#define RECIPE_LIST_WRAPPER_H
15
16
#include <QObject>
17
#include <QStringList>
18
19
#include "
global.h
"
20
#include "
assets/AssetWrapper.h
"
21
22
class
ResourcesManager
;
23
24
class
RecipeListWrapper
:
public
AssetTWrapper
<const recipelist> {
25
Q_OBJECT
26
public
:
27
RecipeListWrapper
(
AssetWrapper
*parent,
const
recipelist
*
list
,
ResourcesManager
*resources);
28
29
virtual
QString
displayName
()
const override
{
return
myWrappedItem
->
items
? tr(
"%1 ingredients"
).arg(
myWrappedItem
->
items
->
ingred_count
) :
"??"
; }
30
virtual
int
childrenCount
()
const override
;
31
virtual
AssetWrapper
*
child
(
int
)
override
;
32
virtual
int
childIndex
(
AssetWrapper
*)
override
;
33
34
virtual
PossibleUse
uses
(
const
AssetWrapper
*asset, std::string &)
const override
;
35
36
protected
:
37
ResourcesManager
*
myResourcesManager
;
38
};
39
40
#endif // RECIPE_LIST_WRAPPER_H
AssetTWrapper< const recipelist >::myWrappedItem
const recipelist * myWrappedItem
Definition:
AssetWrapper.h:108
global.h
AssetWrapper.h
RecipeListWrapper::displayName
virtual QString displayName() const override
Definition:
RecipeListWrapper.h:29
ResourcesManager
Definition:
ResourcesManager.h:80
AssetWrapper::PossibleUse
PossibleUse
Definition:
AssetWrapper.h:32
guildoracle.list
list
Definition:
guildoracle.py:87
recipelist::items
recipe * items
Definition:
recipe.h:40
recipelist
Definition:
recipe.h:37
AssetWrapper
Definition:
AssetWrapper.h:25
RecipeListWrapper::childrenCount
virtual int childrenCount() const override
Definition:
RecipeListWrapper.cpp:23
recipe::ingred_count
int ingred_count
Definition:
recipe.h:23
RecipeListWrapper
Definition:
RecipeListWrapper.h:24
RecipeListWrapper::uses
virtual PossibleUse uses(const AssetWrapper *asset, std::string &) const override
Definition:
RecipeListWrapper.cpp:55
RecipeListWrapper::child
virtual AssetWrapper * child(int) override
Definition:
RecipeListWrapper.cpp:33
RecipeListWrapper::myResourcesManager
ResourcesManager * myResourcesManager
Definition:
RecipeListWrapper.h:37
RecipeListWrapper::RecipeListWrapper
RecipeListWrapper(AssetWrapper *parent, const recipelist *list, ResourcesManager *resources)
Definition:
RecipeListWrapper.cpp:19
RecipeListWrapper::childIndex
virtual int childIndex(AssetWrapper *) override
Definition:
RecipeListWrapper.cpp:42
AssetTWrapper
Definition:
AssetWrapper.h:98
crossfire-crossfire-server
utils
cre
recipes
RecipeListWrapper.h
Generated by
1.8.17