Crossfire Server, Trunk  R20576
CREArtifactPanel.cpp File Reference
#include <QtGui>
#include "global.h"
#include "artifact.h"
#include "CREArtifactPanel.h"
#include "CREUtils.h"
#include "CREAnimationWidget.h"
Include dependency graph for CREArtifactPanel.cpp:

Go to the source code of this file.


static void addArchetypes (const artifact *artifact, const char *name, bool check, QTreeWidget *root)
 Add all possible archetypes for the specified artifact. More...

Function Documentation

◆ addArchetypes()

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

Add all possible archetypes for the specified artifact.

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 121 of file CREArtifactPanel.cpp.

References CREUtils::archetypeNode(), archt::clone, first_archetype, artifactstruct::item, obj::name, archt::name, archt::next, and obj::type.

Referenced by CREArtifactPanel::setItem().

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