Crossfire Server, Trunk
SingleAttackWrapper Class Reference

#include <AttackMessagesWrapper.h>

+ Inheritance diagram for SingleAttackWrapper:
+ Collaboration diagram for SingleAttackWrapper:

Public Member Functions

uint8_t attackType () const
 
virtual QString displayName () const
 
 SingleAttackWrapper (AssetWrapper *parent, uint8_t attackType, const std::string &name)
 
- 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
 

Private Attributes

uint8_t myAttackType
 
QString myName
 

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 AssetWrapper
QString myPanelName
 
AssetWrappermyParent
 
- Properties inherited from AssetWrapper
QString displayName
 
AssetWrapper self
 

Detailed Description

Definition at line 18 of file AttackMessagesWrapper.h.

Constructor & Destructor Documentation

◆ SingleAttackWrapper()

SingleAttackWrapper::SingleAttackWrapper ( AssetWrapper parent,
uint8_t  attackType,
const std::string &  name 
)
inline

Definition at line 21 of file AttackMessagesWrapper.h.

Member Function Documentation

◆ attackType()

uint8_t SingleAttackWrapper::attackType ( ) const
inline

Definition at line 25 of file AttackMessagesWrapper.h.

References myAttackType.

Referenced by AttackMessagePanel::updateItem().

+ Here is the caller graph for this function:

◆ displayName()

virtual QString SingleAttackWrapper::displayName ( ) const
inlinevirtual

Implements AssetWrapper.

Definition at line 23 of file AttackMessagesWrapper.h.

References myName.

Field Documentation

◆ myAttackType

uint8_t SingleAttackWrapper::myAttackType
private

Definition at line 28 of file AttackMessagesWrapper.h.

Referenced by attackType().

◆ myName

QString SingleAttackWrapper::myName
private

Definition at line 29 of file AttackMessagesWrapper.h.

Referenced by displayName().


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