Crossfire Server, Trunk
ObjectWrapper Class Reference

#include <ObjectWrapper.h>

+ Inheritance diagram for ObjectWrapper:
+ Collaboration diagram for ObjectWrapper:

Public Member Functions

AssetWrapperarch ()
 
virtual QString displayName () const override
 
float dps () const
 
const Faceface () const
 
objectgetObject ()
 
 ObjectWrapper (AssetWrapper *parent, object *ob, ResourcesManager *resourcesManager)
 
AssetWrapperrandomItems ()
 
float regen () const
 
int suggested_level () const
 
virtual ~ObjectWrapper ()
 
- Public Member Functions inherited from AssetTWrapper< object >
 AssetTWrapper (AssetWrapper *parent, const QString &panelName, object *wrappedItem)
 
objectwrappedItem () 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 QIcon displayIcon () 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)
 
AssetWrapperself ()
 
void setDisplayParent (AssetWrapper *parent)
 
virtual PossibleUse uses (const AssetWrapper *, std::string &) const
 
virtual ~AssetWrapper () override
 

Protected Attributes

ResourcesManagermyResourcesManager
 
- Protected Attributes inherited from AssetTWrapper< object >
objectmyWrappedItem
 
- Protected Attributes inherited from AssetWrapper
QString myPanelName
 
AssetWrappermyParent
 

Properties

QObject arch
 
float dps
 
QObject randomItems
 
float regen
 
int suggested_level
 
- Properties inherited from AssetWrapper
QString displayName
 
AssetWrapper self
 

Private Member Functions

 ATW_PROP (float, speed, speed)
 
 ATW_PROP (int, cha, stats.Cha)
 
 ATW_PROP (int, con, stats.Con)
 
 ATW_PROP (int, dex, stats.Dex)
 
 ATW_PROP (int, intl, stats.Int)
 
 ATW_PROP (int, pow, stats.Pow)
 
 ATW_PROP (int, str, stats.Str)
 
 ATW_PROP (int, wis, stats.Wis)
 

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)
 

Detailed Description

Definition at line 36 of file ObjectWrapper.h.

Constructor & Destructor Documentation

◆ ObjectWrapper()

ObjectWrapper::ObjectWrapper ( AssetWrapper parent,
object ob,
ResourcesManager resourcesManager 
)

Definition at line 17 of file ObjectWrapper.cpp.

References myResourcesManager.

◆ ~ObjectWrapper()

ObjectWrapper::~ObjectWrapper ( )
virtual

Definition at line 21 of file ObjectWrapper.cpp.

Member Function Documentation

◆ arch()

AssetWrapper* ObjectWrapper::arch ( )

◆ ATW_PROP() [1/8]

ObjectWrapper::ATW_PROP ( float  ,
speed  ,
speed   
)
private

◆ ATW_PROP() [2/8]

ObjectWrapper::ATW_PROP ( int  ,
cha  ,
stats.  Cha 
)
private

◆ ATW_PROP() [3/8]

ObjectWrapper::ATW_PROP ( int  ,
con  ,
stats.  Con 
)
private

◆ ATW_PROP() [4/8]

ObjectWrapper::ATW_PROP ( int  ,
dex  ,
stats.  Dex 
)
private

◆ ATW_PROP() [5/8]

ObjectWrapper::ATW_PROP ( int  ,
intl  ,
stats.  Int 
)
private

◆ ATW_PROP() [6/8]

ObjectWrapper::ATW_PROP ( int  ,
pow  ,
stats.  Pow 
)
private

◆ ATW_PROP() [7/8]

ObjectWrapper::ATW_PROP ( int  ,
str  ,
stats.  Str 
)
private

◆ ATW_PROP() [8/8]

ObjectWrapper::ATW_PROP ( int  ,
wis  ,
stats.  Wis 
)
private

◆ displayName()

virtual QString ObjectWrapper::displayName ( ) const
inlineoverridevirtual

Implements AssetWrapper.

Definition at line 83 of file ObjectWrapper.h.

References give::name.

◆ dps()

float ObjectWrapper::dps ( ) const

◆ face()

const Face* ObjectWrapper::face ( ) const
inline

Definition at line 90 of file ObjectWrapper.h.

References object::face, and AssetTWrapper< object >::myWrappedItem.

◆ getObject()

object* ObjectWrapper::getObject ( )
inline

Definition at line 85 of file ObjectWrapper.h.

References AssetTWrapper< object >::myWrappedItem.

◆ randomItems()

AssetWrapper* ObjectWrapper::randomItems ( )

◆ regen()

float ObjectWrapper::regen ( ) const

◆ suggested_level()

int ObjectWrapper::suggested_level ( ) const

Field Documentation

◆ myResourcesManager

ResourcesManager* ObjectWrapper::myResourcesManager
protected

Definition at line 95 of file ObjectWrapper.h.

Referenced by ObjectWrapper().

Property Documentation

◆ arch

AssetWrapper * ObjectWrapper::arch
read

Definition at line 71 of file ObjectWrapper.h.

◆ dps

float ObjectWrapper::dps
read

Definition at line 76 of file ObjectWrapper.h.

◆ randomItems

AssetWrapper * ObjectWrapper::randomItems
read

Definition at line 74 of file ObjectWrapper.h.

◆ regen

float ObjectWrapper::regen
read

Definition at line 76 of file ObjectWrapper.h.

◆ suggested_level

int ObjectWrapper::suggested_level
read

Definition at line 47 of file ObjectWrapper.h.


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