Crossfire Server, Trunk
CREArtifactPanel.cpp File Reference
#include <QtWidgets>
#include "global.h"
#include "artifact.h"
#include "CREArtifactPanel.h"
#include "CREUtils.h"
#include "CREAnimationWidget.h"
#include "assets.h"
#include "AssetsManager.h"
#include "Archetypes.h"
+ Include dependency graph for CREArtifactPanel.cpp:

Go to the source code of this file.

Functions

static void addArchetypes (const artifact *artifact, const char *name, bool check, QTreeWidget *root)
 

Function Documentation

◆ addArchetypes()

static void addArchetypes ( const artifact artifact,
const char *  name,
bool  check,
QTreeWidget *  root 
)
static

Add all possible archetypes for the specified artifact.

Parameters
artifactartifact. Only the type is used.
namearchetype or object name to allow. If NULL, all items of the correct type are added.
checkif true then the archetype or object's name must match, else it must not match.
roottree to insert items into.

Definition at line 125 of file CREArtifactPanel.cpp.

References archininventory::arch, CREUtils::archetypeNode(), AssetsManager::archetypes(), reputation_trigger_connect::check(), AssetsCollection< T, Key >::each(), getManager(), if(), artifactstruct::item, give::name, root, and obj::type.

Referenced by CREArtifactPanel::setItem().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: