Crossfire Server, Trunk
CREWrapperArtifact Class Reference

#include <CREWrapperArtifact.h>

+ Inheritance diagram for CREWrapperArtifact:
+ Collaboration diagram for CREWrapperArtifact:

Public Member Functions

QStringList allowed () const
 
int chance () const
 
 CREWrapperArtifact ()
 
int difficulty () const
 
QObject * item ()
 
void setArtifact (const artifact *art)
 

Protected Attributes

const artifactmyArtifact
 
CREWrapperObject myItem
 

Properties

QStringList allowed
 
int chance
 
int difficulty
 
QObject item
 

Detailed Description

Definition at line 13 of file CREWrapperArtifact.h.

Constructor & Destructor Documentation

◆ CREWrapperArtifact()

CREWrapperArtifact::CREWrapperArtifact ( )

Definition at line 3 of file CREWrapperArtifact.cpp.

References myArtifact.

Member Function Documentation

◆ allowed()

QStringList CREWrapperArtifact::allowed ( ) const

◆ chance()

int CREWrapperArtifact::chance ( ) const

◆ difficulty()

int CREWrapperArtifact::difficulty ( ) const

◆ item()

QObject* CREWrapperArtifact::item ( )

◆ setArtifact()

void CREWrapperArtifact::setArtifact ( const artifact art)

Definition at line 8 of file CREWrapperArtifact.cpp.

References artifactstruct::item, myArtifact, myItem, and CREWrapperObject::setObject().

Referenced by CREResourcesWindow::fillArtifacts().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ myArtifact

const artifact* CREWrapperArtifact::myArtifact
protected

Definition at line 33 of file CREWrapperArtifact.h.

Referenced by CREWrapperArtifact(), and setArtifact().

◆ myItem

CREWrapperObject CREWrapperArtifact::myItem
protected

Definition at line 34 of file CREWrapperArtifact.h.

Referenced by setArtifact().

Property Documentation

◆ allowed

QStringList CREWrapperArtifact::allowed
read

Definition at line 20 of file CREWrapperArtifact.h.

◆ chance

int CREWrapperArtifact::chance
read

Definition at line 18 of file CREWrapperArtifact.h.

◆ difficulty

int CREWrapperArtifact::difficulty
read

Definition at line 19 of file CREWrapperArtifact.h.

◆ item

QObject * CREWrapperArtifact::item
read

Definition at line 17 of file CREWrapperArtifact.h.


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