Crossfire Server, Trunk
ObjectWrapper Class Reference

#include <ObjectWrapper.h>

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

Public Member Functions

AssetWrapperarch ()
 
QString archName () const
 
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
 
QString arch_name
 
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)
 
 ATW_PROP (quint32, path_attuned, path_attuned)
 
 ATW_PROP (quint32, path_denied, path_denied)
 
 ATW_PROP (quint32, path_repelled, path_repelled)
 
 ATW_RPROP (int, nrof, nrof)
 

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 ( )

◆ archName()

QString ObjectWrapper::archName ( ) const
inline

◆ ATW_PROP() [1/11]

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

◆ ATW_PROP() [2/11]

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

◆ ATW_PROP() [3/11]

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

◆ ATW_PROP() [4/11]

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

◆ ATW_PROP() [5/11]

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

◆ ATW_PROP() [6/11]

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

◆ ATW_PROP() [7/11]

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

◆ ATW_PROP() [8/11]

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

◆ ATW_PROP() [9/11]

ObjectWrapper::ATW_PROP ( quint32  ,
path_attuned  ,
path_attuned   
)
private

◆ ATW_PROP() [10/11]

ObjectWrapper::ATW_PROP ( quint32  ,
path_denied  ,
path_denied   
)
private

◆ ATW_PROP() [11/11]

ObjectWrapper::ATW_PROP ( quint32  ,
path_repelled  ,
path_repelled   
)
private

◆ ATW_RPROP()

ObjectWrapper::ATW_RPROP ( int  ,
nrof  ,
nrof   
)
private

◆ displayName()

virtual QString ObjectWrapper::displayName ( ) const
inlineoverridevirtual

Implements AssetWrapper.

Definition at line 89 of file ObjectWrapper.h.

References give::name.

◆ dps()

float ObjectWrapper::dps ( ) const

◆ face()

const Face* ObjectWrapper::face ( ) const
inline

Definition at line 97 of file ObjectWrapper.h.

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

◆ getObject()

object* ObjectWrapper::getObject ( )
inline

Definition at line 91 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 102 of file ObjectWrapper.h.

Referenced by ObjectWrapper().

Property Documentation

◆ arch

AssetWrapper * ObjectWrapper::arch
read

Definition at line 73 of file ObjectWrapper.h.

◆ arch_name

QString ObjectWrapper::arch_name
read

Definition at line 39 of file ObjectWrapper.h.

◆ dps

float ObjectWrapper::dps
read

Definition at line 78 of file ObjectWrapper.h.

◆ randomItems

AssetWrapper * ObjectWrapper::randomItems
read

Definition at line 76 of file ObjectWrapper.h.

◆ regen

float ObjectWrapper::regen
read

Definition at line 78 of file ObjectWrapper.h.

◆ suggested_level

int ObjectWrapper::suggested_level
read

Definition at line 48 of file ObjectWrapper.h.


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