Crossfire Server, Trunk
CREUtils.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 CREUTILS_H
14 #define CREUTILS_H
15 
16 #include <QtWidgets>
17 
18 #include "global.h"
19 #include "image.h"
20 
21 class CREUtils
22 {
23  public:
24  static QTreeWidgetItem* archetypeNode(const archetype* arch, QTreeWidgetItem* parent);
25 
26  static QTreeWidgetItem* objectNode(const object* op, QTreeWidgetItem* parent);
27 
28  static QTreeWidgetItem* faceNode(QTreeWidgetItem* parent);
29  static QTreeWidgetItem* faceNode(const Face* face, QTreeWidgetItem* parent);
30 
31  static std::unique_ptr<QMutexLocker> lockCrossfireData();
32 };
33 
34 #endif // CREUTILS_H
Face
Definition: face.h:14
global.h
archininventory.arch
arch
DIALOGCHECK MINARGS 1 MAXARGS 1
Definition: archininventory.py:16
CREUtils::faceNode
static QTreeWidgetItem * faceNode(QTreeWidgetItem *parent)
Definition: CREUtils.cpp:46
CREUtils::archetypeNode
static QTreeWidgetItem * archetypeNode(const archetype *arch, QTreeWidgetItem *parent)
Definition: CREUtils.cpp:26
CREUtils
Definition: CREUtils.h:21
CREUtils::lockCrossfireData
static std::unique_ptr< QMutexLocker > lockCrossfireData()
Definition: CREUtils.cpp:59
archetype
Definition: object.h:483
image.h
CREUtils::objectNode
static QTreeWidgetItem * objectNode(const object *op, QTreeWidgetItem *parent)
Definition: CREUtils.cpp:33
give.op
op
Definition: give.py:33