Crossfire Server, Trunk
|
#include <RecipeWrapper.h>
Public Member Functions | |
QStringList | archs () const |
QString | cauldron () const |
int | chance () const |
int | difficulty () const |
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 |
virtual PossibleUse | uses (const AssetWrapper *asset, std::string &hint) const override |
int | yield () const |
Public Member Functions inherited from AssetTWrapper< const recipe > | |
AssetTWrapper (AssetWrapper *parent, const QString &panelName, const recipe *wrappedItem) | |
const recipe * | wrappedItem () 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 AssetWrapper * | child (int) |
virtual int | childIndex (AssetWrapper *) |
virtual int | childrenCount () const |
virtual QString | displayPanelName () const |
AssetWrapper * | displayParent () const |
virtual void | drag (QMimeData *) const |
virtual void | drop (const QMimeData *, int) |
virtual void | fillMenu (QMenu *) |
void | markModified (ChangeType change, int extra=0) |
AssetWrapper * | self () |
void | setDisplayParent (AssetWrapper *parent) |
virtual | ~AssetWrapper () override |
Properties | |
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 |
Properties inherited from AssetWrapper | |
QString | displayName |
AssetWrapper | self |
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 recipe * | myWrappedItem |
Protected Attributes inherited from AssetWrapper | |
QString | myPanelName |
AssetWrapper * | myParent |
Definition at line 24 of file RecipeWrapper.h.
RecipeWrapper::RecipeWrapper | ( | AssetWrapper * | parent, |
const recipe * | rp, | ||
ResourcesManager * | resources | ||
) |
Definition at line 19 of file RecipeWrapper.cpp.
QStringList RecipeWrapper::archs | ( | ) | const |
|
inline |
Definition at line 61 of file RecipeWrapper.h.
References recipe::cauldron, and AssetTWrapper< const recipe >::myWrappedItem.
int RecipeWrapper::chance | ( | ) | const |
int RecipeWrapper::difficulty | ( | ) | const |
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 96 of file RecipeWrapper.cpp.
References recipe::arch_name, recipe::arch_names, archetype::clone, object::face, find_archetype(), CREPixmap::getIcon(), CREUtils::lockCrossfireData(), AssetTWrapper< const recipe >::myWrappedItem, and recipe_get_face().
|
overridevirtual |
Implements AssetWrapper.
Definition at line 78 of file RecipeWrapper.cpp.
References recipe::arch_name, recipe::arch_names, find_archetype(), AssetTWrapper< const recipe >::myWrappedItem, and recipe::title.
int RecipeWrapper::experience | ( | ) | const |
|
inline |
Definition at line 59 of file RecipeWrapper.h.
References recipe::index, and AssetTWrapper< const recipe >::myWrappedItem.
QStringList RecipeWrapper::ingredients | ( | ) | const |
QString RecipeWrapper::keycode | ( | ) | const |
int RecipeWrapper::minLevel | ( | ) | const |
|
inline |
Definition at line 60 of file RecipeWrapper.h.
References AssetTWrapper< const recipe >::myWrappedItem, and recipe::skill.
QString RecipeWrapper::title | ( | ) | const |
bool RecipeWrapper::transmute | ( | ) | const |
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 113 of file RecipeWrapper.cpp.
References archininventory::arch, recipe::arch_names, AssetWrapper::DoesntUse, AssetWrapper::Uses, and AssetTWrapper< const recipe >::wrappedItem().
|
inline |
Definition at line 62 of file RecipeWrapper.h.
References AssetTWrapper< const recipe >::myWrappedItem, and recipe::yield.
|
read |
Definition at line 32 of file RecipeWrapper.h.
|
read |
Definition at line 39 of file RecipeWrapper.h.
|
read |
Definition at line 29 of file RecipeWrapper.h.
|
read |
Definition at line 30 of file RecipeWrapper.h.
|
read |
Definition at line 31 of file RecipeWrapper.h.
|
read |
Definition at line 37 of file RecipeWrapper.h.
|
read |
Definition at line 33 of file RecipeWrapper.h.
|
read |
Definition at line 36 of file RecipeWrapper.h.
|
read |
Definition at line 35 of file RecipeWrapper.h.
|
read |
Definition at line 27 of file RecipeWrapper.h.
|
read |
Definition at line 38 of file RecipeWrapper.h.
|
read |
Definition at line 28 of file RecipeWrapper.h.
|
read |
Definition at line 34 of file RecipeWrapper.h.
|
read |
Definition at line 40 of file RecipeWrapper.h.