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
 

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
 

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
 
AssetWrappermyParent
 

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
inline

◆ chance()

int RecipeWrapper::chance ( ) const

◆ difficulty()

int RecipeWrapper::difficulty ( ) const

◆ displayFillPanel()

void RecipeWrapper::displayFillPanel ( QWidget *  panel)
overridevirtual

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
overridevirtual

◆ displayName()

QString RecipeWrapper::displayName ( ) const
overridevirtual

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
inline

◆ ingredients()

QStringList RecipeWrapper::ingredients ( ) const

◆ keycode()

QString RecipeWrapper::keycode ( ) const

◆ minLevel()

int RecipeWrapper::minLevel ( ) const

◆ skill()

QString RecipeWrapper::skill ( ) const
inline

◆ title()

QString RecipeWrapper::title ( ) const

◆ transmute()

bool RecipeWrapper::transmute ( ) const

◆ yield()

int RecipeWrapper::yield ( ) const
inline

Property Documentation

◆ archs

QStringList RecipeWrapper::archs
read

Definition at line 23 of file RecipeWrapper.h.

◆ cauldron

QString RecipeWrapper::cauldron
read

Definition at line 30 of file RecipeWrapper.h.

◆ chance

int RecipeWrapper::chance
read

Definition at line 20 of file RecipeWrapper.h.

◆ difficulty

int RecipeWrapper::difficulty
read

Definition at line 21 of file RecipeWrapper.h.

◆ experience

int RecipeWrapper::experience
read

Definition at line 22 of file RecipeWrapper.h.

◆ index

int RecipeWrapper::index
read

Definition at line 28 of file RecipeWrapper.h.

◆ ingredients

QStringList RecipeWrapper::ingredients
read

Definition at line 24 of file RecipeWrapper.h.

◆ keycode

QString RecipeWrapper::keycode
read

Definition at line 27 of file RecipeWrapper.h.

◆ minLevel

int RecipeWrapper::minLevel
read

Definition at line 26 of file RecipeWrapper.h.

◆ name

QString RecipeWrapper::name
read

Definition at line 18 of file RecipeWrapper.h.

◆ skill

QString RecipeWrapper::skill
read

Definition at line 29 of file RecipeWrapper.h.

◆ title

QString RecipeWrapper::title
read

Definition at line 19 of file RecipeWrapper.h.

◆ transmute

bool RecipeWrapper::transmute
read

Definition at line 25 of file RecipeWrapper.h.

◆ yield

int RecipeWrapper::yield
read

Definition at line 31 of file RecipeWrapper.h.


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