Crossfire Server, Trunk
CREWrapperObject Class Reference

#include <CREWrapperObject.h>

+ Inheritance diagram for CREWrapperObject:
+ Collaboration diagram for CREWrapperObject:

Public Member Functions

int8_t ac () const
 
CREWrapperArchetypearch ()
 
quint32 attacktype () const
 
 CREWrapperObject ()
 
int16_t damage () const
 
int64_t experience () const
 
objectgetObject ()
 
int16_t hp () const
 
bool isAlive () const
 
bool isGenerator () const
 
bool isMonster () const
 
int level () const
 
QString materialName () const
 
QString name () const
 
QString race () const
 
CREWrapperTreasureListrandomItems ()
 
void setAc (int8_t ac)
 
void setDamage (int16_t damage)
 
void setExperience (int64_t experience)
 
void setHp (int16_t hp)
 
void setLevel (int level)
 
void setObject (object *obj)
 
void setSpeed (float speed)
 
void setWc (int8_t wc)
 
void setWeight (int32_t weight)
 
QString skill () const
 
QString slaying () const
 
float speed () const
 
int subType () const
 
QString title () const
 
int type () const
 
int8_t wc () const
 
int32_t weight () const
 
virtual ~CREWrapperObject ()
 

Protected Attributes

CREWrapperArchetypemyArchetype
 
objectmyObject
 
CREWrapperTreasureListmyTreasure
 

Properties

int ac
 
QObject arch
 
quint32 attacktype
 
int damage
 
qint64 experience
 
int hp
 
bool isAlive
 
bool isGenerator
 
bool isMonster
 
int level
 
QString materialName
 
QString name
 
QString race
 
QObject randomItems
 
QString skill
 
QString slaying
 
float speed
 
int subType
 
QString title
 
int type
 
int wc
 
int weight
 

Detailed Description

Definition at line 12 of file CREWrapperObject.h.

Constructor & Destructor Documentation

◆ CREWrapperObject()

CREWrapperObject::CREWrapperObject ( )

Definition at line 3 of file CREWrapperObject.cpp.

References myArchetype, myObject, and myTreasure.

◆ ~CREWrapperObject()

CREWrapperObject::~CREWrapperObject ( )
virtual

Definition at line 10 of file CREWrapperObject.cpp.

References myArchetype, and myTreasure.

Member Function Documentation

◆ ac()

int8_t CREWrapperObject::ac ( ) const
inline

Definition at line 62 of file CREWrapperObject.h.

References liv::ac, myObject, and obj::stats.

◆ arch()

CREWrapperArchetype* CREWrapperObject::arch ( )

◆ attacktype()

quint32 CREWrapperObject::attacktype ( ) const

◆ damage()

int16_t CREWrapperObject::damage ( ) const
inline

Definition at line 66 of file CREWrapperObject.h.

References liv::dam, myObject, and obj::stats.

◆ experience()

int64_t CREWrapperObject::experience ( ) const
inline

Definition at line 59 of file CREWrapperObject.h.

References liv::exp, myObject, and obj::stats.

◆ getObject()

object* CREWrapperObject::getObject ( )
inline

Definition at line 44 of file CREWrapperObject.h.

References myObject.

◆ hp()

int16_t CREWrapperObject::hp ( ) const
inline

Definition at line 68 of file CREWrapperObject.h.

References liv::hp, myObject, and obj::stats.

◆ isAlive()

bool CREWrapperObject::isAlive ( ) const

◆ isGenerator()

bool CREWrapperObject::isGenerator ( ) const
inline

Definition at line 58 of file CREWrapperObject.h.

References FLAG_GENERATOR, myObject, and QUERY_FLAG.

◆ isMonster()

bool CREWrapperObject::isMonster ( ) const

◆ level()

int CREWrapperObject::level ( ) const

◆ materialName()

QString CREWrapperObject::materialName ( ) const

◆ name()

QString CREWrapperObject::name ( ) const

◆ race()

QString CREWrapperObject::race ( ) const

◆ randomItems()

CREWrapperTreasureList* CREWrapperObject::randomItems ( )

◆ setAc()

void CREWrapperObject::setAc ( int8_t  ac)
inline

Definition at line 63 of file CREWrapperObject.h.

References ac, liv::ac, myObject, and obj::stats.

◆ setDamage()

void CREWrapperObject::setDamage ( int16_t  damage)
inline

Definition at line 67 of file CREWrapperObject.h.

References liv::dam, damage, myObject, and obj::stats.

◆ setExperience()

void CREWrapperObject::setExperience ( int64_t  experience)
inline

Definition at line 60 of file CREWrapperObject.h.

References liv::exp, experience, myObject, and obj::stats.

◆ setHp()

void CREWrapperObject::setHp ( int16_t  hp)
inline

Definition at line 69 of file CREWrapperObject.h.

References hp, liv::hp, myObject, and obj::stats.

◆ setLevel()

void CREWrapperObject::setLevel ( int  level)
inline

Definition at line 55 of file CREWrapperObject.h.

References level, obj::level, and myObject.

◆ setObject()

void CREWrapperObject::setObject ( object obj)

Definition at line 16 of file CREWrapperObject.cpp.

References obj::arch, myArchetype, myObject, myTreasure, altar_valkyrie::obj, and CREWrapperArchetype::setArchetype().

Referenced by CREResourcesWindow::fillArchetypes(), and CREWrapperArtifact::setArtifact().

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

◆ setSpeed()

void CREWrapperObject::setSpeed ( float  speed)
inline

Definition at line 75 of file CREWrapperObject.h.

References myObject, speed, and obj::speed.

◆ setWc()

void CREWrapperObject::setWc ( int8_t  wc)
inline

Definition at line 65 of file CREWrapperObject.h.

References myObject, obj::stats, wc, and liv::wc.

◆ setWeight()

void CREWrapperObject::setWeight ( int32_t  weight)
inline

Definition at line 71 of file CREWrapperObject.h.

References myObject, weight, and obj::weight.

◆ skill()

QString CREWrapperObject::skill ( ) const
inline

Definition at line 51 of file CREWrapperObject.h.

References myObject, and obj::skill.

◆ slaying()

QString CREWrapperObject::slaying ( ) const
inline

Definition at line 50 of file CREWrapperObject.h.

References myObject, and obj::slaying.

◆ speed()

float CREWrapperObject::speed ( ) const
inline

Definition at line 74 of file CREWrapperObject.h.

References myObject, and obj::speed.

◆ subType()

int CREWrapperObject::subType ( ) const
inline

Definition at line 53 of file CREWrapperObject.h.

References myObject, and obj::subtype.

◆ title()

QString CREWrapperObject::title ( ) const
inline

Definition at line 49 of file CREWrapperObject.h.

References myObject, and obj::title.

◆ type()

int CREWrapperObject::type ( ) const

◆ wc()

int8_t CREWrapperObject::wc ( ) const
inline

Definition at line 64 of file CREWrapperObject.h.

References myObject, obj::stats, and liv::wc.

◆ weight()

int32_t CREWrapperObject::weight ( ) const
inline

Definition at line 70 of file CREWrapperObject.h.

References myObject, and obj::weight.

Field Documentation

◆ myArchetype

CREWrapperArchetype* CREWrapperObject::myArchetype
protected

Definition at line 79 of file CREWrapperObject.h.

Referenced by CREWrapperObject(), setObject(), and ~CREWrapperObject().

◆ myObject

◆ myTreasure

CREWrapperTreasureList* CREWrapperObject::myTreasure
protected

Definition at line 80 of file CREWrapperObject.h.

Referenced by CREWrapperObject(), setObject(), and ~CREWrapperObject().

Property Documentation

◆ ac

int CREWrapperObject::ac
readwrite

Definition at line 29 of file CREWrapperObject.h.

Referenced by setAc().

◆ arch

CREWrapperArchetype * CREWrapperObject::arch
read

Definition at line 31 of file CREWrapperObject.h.

◆ attacktype

quint32 CREWrapperObject::attacktype
read

Definition at line 28 of file CREWrapperObject.h.

◆ damage

int CREWrapperObject::damage
readwrite

Definition at line 32 of file CREWrapperObject.h.

Referenced by setDamage().

◆ experience

qint64 CREWrapperObject::experience
readwrite

Definition at line 27 of file CREWrapperObject.h.

Referenced by setExperience().

◆ hp

int CREWrapperObject::hp
readwrite

Definition at line 33 of file CREWrapperObject.h.

Referenced by setHp().

◆ isAlive

bool CREWrapperObject::isAlive
read

Definition at line 25 of file CREWrapperObject.h.

◆ isGenerator

bool CREWrapperObject::isGenerator
read

Definition at line 26 of file CREWrapperObject.h.

◆ isMonster

bool CREWrapperObject::isMonster
read

Definition at line 24 of file CREWrapperObject.h.

◆ level

int CREWrapperObject::level
readwrite

Definition at line 23 of file CREWrapperObject.h.

Referenced by setLevel().

◆ materialName

QString CREWrapperObject::materialName
read

Definition at line 35 of file CREWrapperObject.h.

◆ name

QString CREWrapperObject::name
read

Definition at line 16 of file CREWrapperObject.h.

◆ race

QString CREWrapperObject::race
read

Definition at line 17 of file CREWrapperObject.h.

◆ randomItems

CREWrapperTreasureList * CREWrapperObject::randomItems
read

Definition at line 36 of file CREWrapperObject.h.

◆ skill

QString CREWrapperObject::skill
read

Definition at line 20 of file CREWrapperObject.h.

◆ slaying

QString CREWrapperObject::slaying
read

Definition at line 19 of file CREWrapperObject.h.

◆ speed

float CREWrapperObject::speed
readwrite

Definition at line 37 of file CREWrapperObject.h.

Referenced by setSpeed().

◆ subType

int CREWrapperObject::subType
read

Definition at line 22 of file CREWrapperObject.h.

◆ title

QString CREWrapperObject::title
read

Definition at line 18 of file CREWrapperObject.h.

◆ type

int CREWrapperObject::type
read

Definition at line 21 of file CREWrapperObject.h.

◆ wc

int CREWrapperObject::wc
readwrite

Definition at line 30 of file CREWrapperObject.h.

Referenced by setWc().

◆ weight

int CREWrapperObject::weight
readwrite

Definition at line 34 of file CREWrapperObject.h.

Referenced by setWeight().


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