Crossfire Server, Trunk
RecipeWrapper Class Reference

#include <RecipeWrapper.h>

+ Inheritance diagram for RecipeWrapper:
+ Collaboration diagram for RecipeWrapper:

Public Member Functions

QStringList archs () const
QString cauldron () const
int chance () const
int difficulty () const
virtual void displayFillPanel (QWidget *panel) override
virtual QIcon displayIcon () const override
virtual QString displayName () const override
int experience () const
int index () const
QStringList ingredients () const
QString keycode () const
int minLevel () const
 RecipeWrapper (AssetWrapper *parent, const recipe *rp, ResourcesManager *resources)
QString skill () const
QString title () const
bool transmute () const
int yield () const
- Public Member Functions inherited from AssetTWrapper< const recipe >
 AssetTWrapper (AssetWrapper *parent, const QString &panelName, const recipe *wrappedItem)
const recipewrappedItem () const
- Public Member Functions inherited from AssetWrapper
 AssetWrapper (AssetWrapper *parent, const QString &panelName="empty")
virtual bool canDrag () const
virtual bool canDrop (const QMimeData *, int) const
virtual AssetWrapperchild (int)
virtual int childIndex (AssetWrapper *)
virtual int childrenCount () const
virtual QString displayPanelName () const
AssetWrapperdisplayParent () const
virtual void drag (QMimeData *) const
virtual void drop (const QMimeData *, int)
virtual void fillMenu (QMenu *)
void markModified (ChangeType change, int extra=0)
void setDisplayParent (AssetWrapper *parent)
virtual PossibleUse uses (const AssetWrapper *, std::string &) const
virtual ~AssetWrapper () override


QStringList archs
QString cauldron
int chance
int difficulty
int experience
int index
QStringList ingredients
QString keycode
int minLevel
QString name
QString skill
QString title
bool transmute
int yield

Additional Inherited Members

- Public Types inherited from AssetWrapper
enum  ChangeType {
  AssetUpdated, BeforeChildAdd, AfterChildAdd, BeforeChildRemove,
  AfterChildRemove, BeforeLayoutChange, AfterLayoutChange
enum  PossibleUse { Uses, ChildrenMayUse, DoesntUse }
- Public Slots inherited from AssetWrapper
virtual void removeChild (AssetWrapper *)
- Signals inherited from AssetWrapper
void dataModified (AssetWrapper *asset, AssetWrapper::ChangeType type, int extra)
void modified ()
- Static Public Member Functions inherited from AssetWrapper
static bool compareByDisplayName (const AssetWrapper *left, const AssetWrapper *right)
- Static Public Attributes inherited from AssetWrapper
static const char * tipProperty = "_cre_internal"
- Protected Member Functions inherited from AssetWrapper
virtual void wasModified (AssetWrapper *asset, ChangeType type, int extra)
- Protected Attributes inherited from AssetTWrapper< const recipe >
const recipemyWrappedItem
- Protected Attributes inherited from AssetWrapper
QString myPanelName

Detailed Description

Definition at line 15 of file RecipeWrapper.h.

Constructor & Destructor Documentation

◆ RecipeWrapper()

RecipeWrapper::RecipeWrapper ( AssetWrapper parent,
const recipe rp,
ResourcesManager resources 

Definition at line 5 of file RecipeWrapper.cpp.

Member Function Documentation

◆ archs()

QStringList RecipeWrapper::archs ( ) const

◆ cauldron()

QString RecipeWrapper::cauldron ( ) const

◆ chance()

int RecipeWrapper::chance ( ) const

◆ difficulty()

int RecipeWrapper::difficulty ( ) const

◆ displayFillPanel()

void RecipeWrapper::displayFillPanel ( QWidget *  panel)

Reimplemented from AssetTWrapper< const recipe >.

Definition at line 94 of file RecipeWrapper.cpp.

References AssetWrapperPanel::setItem().

+ Here is the call graph for this function:

◆ displayIcon()

QIcon RecipeWrapper::displayIcon ( ) const

◆ displayName()

QString RecipeWrapper::displayName ( ) const

Implements AssetWrapper.

Definition at line 64 of file RecipeWrapper.cpp.

References recipestruct::arch_name, recipestruct::arch_names, find_archetype(), AssetTWrapper< const recipe >::myWrappedItem, and recipestruct::title.

+ Here is the call graph for this function:

◆ experience()

int RecipeWrapper::experience ( ) const

◆ index()

int RecipeWrapper::index ( ) const

◆ ingredients()

QStringList RecipeWrapper::ingredients ( ) const

◆ keycode()

QString RecipeWrapper::keycode ( ) const

◆ minLevel()

int RecipeWrapper::minLevel ( ) const

◆ skill()

QString RecipeWrapper::skill ( ) const

◆ title()

QString RecipeWrapper::title ( ) const

◆ transmute()

bool RecipeWrapper::transmute ( ) const

◆ yield()

int RecipeWrapper::yield ( ) const

Property Documentation

◆ archs

QStringList RecipeWrapper::archs

Definition at line 23 of file RecipeWrapper.h.

◆ cauldron

QString RecipeWrapper::cauldron

Definition at line 30 of file RecipeWrapper.h.

◆ chance

int RecipeWrapper::chance

Definition at line 20 of file RecipeWrapper.h.

◆ difficulty

int RecipeWrapper::difficulty

Definition at line 21 of file RecipeWrapper.h.

◆ experience

int RecipeWrapper::experience

Definition at line 22 of file RecipeWrapper.h.

◆ index

int RecipeWrapper::index

Definition at line 28 of file RecipeWrapper.h.

◆ ingredients

QStringList RecipeWrapper::ingredients

Definition at line 24 of file RecipeWrapper.h.

◆ keycode

QString RecipeWrapper::keycode

Definition at line 27 of file RecipeWrapper.h.

◆ minLevel

int RecipeWrapper::minLevel

Definition at line 26 of file RecipeWrapper.h.

◆ name

QString RecipeWrapper::name

Definition at line 18 of file RecipeWrapper.h.

◆ skill

QString RecipeWrapper::skill

Definition at line 29 of file RecipeWrapper.h.

◆ title

QString RecipeWrapper::title

Definition at line 19 of file RecipeWrapper.h.

◆ transmute

bool RecipeWrapper::transmute

Definition at line 25 of file RecipeWrapper.h.

◆ yield

int RecipeWrapper::yield

Definition at line 31 of file RecipeWrapper.h.

The documentation for this class was generated from the following files: