Crossfire Server, Trunk
ArtifactPanel.cpp File Reference
#include "ArtifactPanel.h"
#include "CREUtils.h"
#include "animations/AnimationWidget.h"
#include "assets.h"
#include "AssetsManager.h"
#include "Archetypes.h"
#include "assets/AssetWrapper.h"
#include "artifacts/ArtifactWrapper.h"
+ Include dependency graph for ArtifactPanel.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 100 of file ArtifactPanel.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 ArtifactPanel::setItem().

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