Crossfire Server, Trunk
Quest Class Reference

#include <Quest.h>

+ Inheritance diagram for Quest:
+ Collaboration diagram for Quest:

Signals

void modified ()
 

Public Member Functions

bool canRestart () const
 
const QString & code () const
 
const QString & comment () const
 
const QString & description () const
 
const Faceface () const
 
bool isModified () const
 
bool isSystem () const
 
QList< CREMapInformation * > & maps ()
 
const Questparent () const
 
 Quest ()
 
void setCode (const QString &code)
 
void setComment (const QString &comment)
 
void setDescription (const QString &description)
 
void setFace (const Face *face)
 
void setModified (bool modified)
 
void setParent (Quest *parent)
 
void setRestart (bool restart)
 
void setSystem (bool system)
 
void setTitle (const QString &title)
 
QList< QuestStep * > & steps ()
 
QList< const QuestStep * > steps () const
 
const QString & title () const
 
virtual ~Quest ()
 

Private Member Functions

void markModified ()
 

Private Attributes

bool myCanRestart
 
QString myCode
 
QString myComment
 
QString myDescription
 
const FacemyFace
 
bool myIsSystem
 
QList< CREMapInformation * > myMaps
 
bool myModified
 
QuestmyParent
 
QList< QuestStep * > mySteps
 
QString myTitle
 

Detailed Description

Definition at line 34 of file Quest.h.

Constructor & Destructor Documentation

◆ Quest()

Quest::Quest ( )

Definition at line 50 of file Quest.cpp.

References myCanRestart, myFace, myIsSystem, myModified, and myParent.

◆ ~Quest()

Quest::~Quest ( )
virtual

Definition at line 59 of file Quest.cpp.

References mySteps.

Member Function Documentation

◆ canRestart()

bool Quest::canRestart ( ) const

Definition at line 116 of file Quest.cpp.

References myCanRestart.

◆ code()

const QString & Quest::code ( ) const

Definition at line 64 of file Quest.cpp.

References myCode.

Referenced by CRETreeItemQuest::questModified(), and setCode().

+ Here is the caller graph for this function:

◆ comment()

const QString & Quest::comment ( ) const

Definition at line 176 of file Quest.cpp.

References myComment.

Referenced by setComment().

+ Here is the caller graph for this function:

◆ description()

const QString & Quest::description ( ) const

Definition at line 103 of file Quest.cpp.

References myDescription.

Referenced by setDescription().

+ Here is the caller graph for this function:

◆ face()

const Face * Quest::face ( ) const

Definition at line 90 of file Quest.cpp.

References myFace.

Referenced by CRETreeItemQuest::questModified(), and setFace().

+ Here is the caller graph for this function:

◆ isModified()

bool Quest::isModified ( ) const

Definition at line 142 of file Quest.cpp.

References myModified.

◆ isSystem()

bool Quest::isSystem ( ) const

Definition at line 190 of file Quest.cpp.

References myIsSystem.

◆ maps()

QList< CREMapInformation * > & Quest::maps ( )

Definition at line 171 of file Quest.cpp.

References myMaps.

◆ markModified()

void Quest::markModified ( )
private

Definition at line 151 of file Quest.cpp.

References modified(), and setModified().

Referenced by setCode(), setComment(), setDescription(), setFace(), setParent(), setRestart(), setSystem(), and setTitle().

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

◆ modified

void Quest::modified ( )
signal

Referenced by markModified(), and setModified().

+ Here is the caller graph for this function:

◆ parent()

const Quest * Quest::parent ( ) const

Definition at line 157 of file Quest.cpp.

References myParent.

Referenced by setParent().

+ Here is the caller graph for this function:

◆ setCode()

void Quest::setCode ( const QString &  code)

Definition at line 69 of file Quest.cpp.

References code(), markModified(), and myCode.

Referenced by CREQuestPanel::commitData().

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

◆ setComment()

void Quest::setComment ( const QString &  comment)

Definition at line 181 of file Quest.cpp.

References comment(), markModified(), and myComment.

Referenced by CREQuestPanel::commitData().

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

◆ setDescription()

void Quest::setDescription ( const QString &  description)

Definition at line 108 of file Quest.cpp.

References description(), markModified(), and myDescription.

Referenced by CREQuestPanel::commitData().

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

◆ setFace()

void Quest::setFace ( const Face face)

Definition at line 95 of file Quest.cpp.

References face(), markModified(), and myFace.

Referenced by CREQuestPanel::commitData().

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

◆ setModified()

void Quest::setModified ( bool  modified)

Definition at line 146 of file Quest.cpp.

References modified(), and myModified.

Referenced by CREQuestItemModel::addStep(), markModified(), CREQuestItemModel::moveDown(), CREQuestItemModel::moveUp(), and CREQuestItemModel::setData().

+ Here is the caller graph for this function:

◆ setParent()

void Quest::setParent ( Quest parent)

Definition at line 162 of file Quest.cpp.

References markModified(), myParent, and parent().

Referenced by CREQuestPanel::commitData().

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

◆ setRestart()

void Quest::setRestart ( bool  restart)

Definition at line 121 of file Quest.cpp.

References markModified(), and myCanRestart.

Referenced by CREQuestPanel::commitData().

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

◆ setSystem()

void Quest::setSystem ( bool  system)

Definition at line 194 of file Quest.cpp.

References markModified(), and myIsSystem.

Referenced by CREQuestPanel::commitData().

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

◆ setTitle()

void Quest::setTitle ( const QString &  title)

Definition at line 82 of file Quest.cpp.

References markModified(), and myTitle.

Referenced by CREQuestPanel::commitData().

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

◆ steps() [1/2]

QList<QuestStep*>& Quest::steps ( )

◆ steps() [2/2]

QList< QuestStep * > & Quest::steps ( ) const

◆ title()

const QString & Quest::title ( ) const

Definition at line 77 of file Quest.cpp.

References myTitle.

Field Documentation

◆ myCanRestart

bool Quest::myCanRestart
private

Definition at line 74 of file Quest.h.

Referenced by canRestart(), Quest(), and setRestart().

◆ myCode

QString Quest::myCode
private

Definition at line 70 of file Quest.h.

Referenced by code(), and setCode().

◆ myComment

QString Quest::myComment
private

Definition at line 79 of file Quest.h.

Referenced by comment(), and setComment().

◆ myDescription

QString Quest::myDescription
private

Definition at line 73 of file Quest.h.

Referenced by description(), and setDescription().

◆ myFace

const Face* Quest::myFace
private

Definition at line 72 of file Quest.h.

Referenced by face(), Quest(), and setFace().

◆ myIsSystem

bool Quest::myIsSystem
private

Definition at line 80 of file Quest.h.

Referenced by isSystem(), Quest(), and setSystem().

◆ myMaps

QList<CREMapInformation*> Quest::myMaps
private

Definition at line 78 of file Quest.h.

Referenced by maps().

◆ myModified

bool Quest::myModified
private

Definition at line 76 of file Quest.h.

Referenced by isModified(), Quest(), and setModified().

◆ myParent

Quest* Quest::myParent
private

Definition at line 77 of file Quest.h.

Referenced by parent(), Quest(), and setParent().

◆ mySteps

QList<QuestStep*> Quest::mySteps
private

Definition at line 75 of file Quest.h.

Referenced by steps(), and ~Quest().

◆ myTitle

QString Quest::myTitle
private

Definition at line 71 of file Quest.h.

Referenced by setTitle(), and title().


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