Crossfire Server, Trunk
MessageRule Class Reference

#include <MessageFile.h>

+ Inheritance diagram for MessageRule:
+ Collaboration diagram for MessageRule:

Public Member Functions

const QString & comment () const
 
const QStringList & include () const
 
bool isModified () const
 
QStringList & match ()
 
const QStringList & match () const
 
 MessageRule ()
 
 MessageRule (const MessageRule &original)
 
const QStringList & messages () const
 
const QList< QStringList > & postconditions () const
 
const QList< QStringList > & preconditions () const
 
const QList< QStringList > & replies () const
 
void setComment (const QString &comment)
 
void setInclude (const QStringList &include)
 
void setMatch (const QStringList &match)
 
void setMessages (const QStringList &messages)
 
void setModified (bool modified=true)
 
void setPostconditions (const QList< QStringList > &postconditions)
 
void setPreconditions (const QList< QStringList > &preconditions)
 
void setReplies (const QList< QStringList > &replies)
 
virtual ~MessageRule ()
 

Private Attributes

QString myComment
 
QStringList myInclude
 
bool myIsModified
 
QStringList myMatch
 
QStringList myMessages
 
QList< QStringList > myPostconditions
 
QList< QStringList > myPreconditions
 
QList< QStringList > myReplies
 

Detailed Description

One NPC dialog rule.

Definition at line 25 of file MessageFile.h.

Constructor & Destructor Documentation

◆ MessageRule() [1/2]

MessageRule::MessageRule ( )

Definition at line 23 of file MessageFile.cpp.

References myIsModified.

◆ MessageRule() [2/2]

MessageRule::MessageRule ( const MessageRule original)

Definition at line 28 of file MessageFile.cpp.

References match(), messages(), myIsModified, myMatch, myMessages, myPostconditions, myPreconditions, myReplies, postconditions(), preconditions(), and replies().

+ Here is the call graph for this function:

◆ ~MessageRule()

MessageRule::~MessageRule ( )
virtual

Definition at line 38 of file MessageFile.cpp.

Member Function Documentation

◆ comment()

const QString & MessageRule::comment ( ) const

Definition at line 42 of file MessageFile.cpp.

References myComment.

Referenced by setComment().

+ Here is the caller graph for this function:

◆ include()

const QStringList & MessageRule::include ( ) const

Definition at line 97 of file MessageFile.cpp.

References myInclude.

Referenced by setInclude().

+ Here is the caller graph for this function:

◆ isModified()

bool MessageRule::isModified ( ) const

Definition at line 117 of file MessageFile.cpp.

References myIsModified.

◆ match() [1/2]

QStringList& MessageRule::match ( )

◆ match() [2/2]

QStringList & MessageRule::match ( ) const

Definition at line 52 of file MessageFile.cpp.

References myMatch.

Referenced by MessageRule(), and setMatch().

+ Here is the caller graph for this function:

◆ messages()

const QStringList & MessageRule::messages ( ) const

Definition at line 87 of file MessageFile.cpp.

References myMessages.

Referenced by MessageRule(), and setMessages().

+ Here is the caller graph for this function:

◆ postconditions()

const QList< QStringList > & MessageRule::postconditions ( ) const

Definition at line 77 of file MessageFile.cpp.

References myPostconditions.

Referenced by MessageRule(), and setPostconditions().

+ Here is the caller graph for this function:

◆ preconditions()

const QList< QStringList > & MessageRule::preconditions ( ) const

Definition at line 67 of file MessageFile.cpp.

References myPreconditions.

Referenced by MessageRule(), and setPreconditions().

+ Here is the caller graph for this function:

◆ replies()

const QList< QStringList > & MessageRule::replies ( ) const

Definition at line 107 of file MessageFile.cpp.

References myReplies.

Referenced by MessageRule(), and setReplies().

+ Here is the caller graph for this function:

◆ setComment()

void MessageRule::setComment ( const QString &  comment)

Definition at line 47 of file MessageFile.cpp.

References comment(), and myComment.

+ Here is the call graph for this function:

◆ setInclude()

void MessageRule::setInclude ( const QStringList &  include)

Definition at line 102 of file MessageFile.cpp.

References include(), and myInclude.

+ Here is the call graph for this function:

◆ setMatch()

void MessageRule::setMatch ( const QStringList &  match)

Definition at line 62 of file MessageFile.cpp.

References match(), and myMatch.

+ Here is the call graph for this function:

◆ setMessages()

void MessageRule::setMessages ( const QStringList &  messages)

Definition at line 92 of file MessageFile.cpp.

References messages(), and myMessages.

+ Here is the call graph for this function:

◆ setModified()

void MessageRule::setModified ( bool  modified = true)

Definition at line 122 of file MessageFile.cpp.

References myIsModified.

◆ setPostconditions()

void MessageRule::setPostconditions ( const QList< QStringList > &  postconditions)

Definition at line 82 of file MessageFile.cpp.

References myPostconditions, and postconditions().

+ Here is the call graph for this function:

◆ setPreconditions()

void MessageRule::setPreconditions ( const QList< QStringList > &  preconditions)

Definition at line 72 of file MessageFile.cpp.

References myPreconditions, and preconditions().

+ Here is the call graph for this function:

◆ setReplies()

void MessageRule::setReplies ( const QList< QStringList > &  replies)

Definition at line 112 of file MessageFile.cpp.

References myReplies, and replies().

+ Here is the call graph for this function:

Field Documentation

◆ myComment

QString MessageRule::myComment
private

Definition at line 55 of file MessageFile.h.

Referenced by comment(), and setComment().

◆ myInclude

QStringList MessageRule::myInclude
private

Definition at line 60 of file MessageFile.h.

Referenced by include(), and setInclude().

◆ myIsModified

bool MessageRule::myIsModified
private

Definition at line 54 of file MessageFile.h.

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

◆ myMatch

QStringList MessageRule::myMatch
private

Definition at line 56 of file MessageFile.h.

Referenced by match(), MessageRule(), and setMatch().

◆ myMessages

QStringList MessageRule::myMessages
private

Definition at line 59 of file MessageFile.h.

Referenced by MessageRule(), messages(), and setMessages().

◆ myPostconditions

QList<QStringList> MessageRule::myPostconditions
private

Definition at line 58 of file MessageFile.h.

Referenced by MessageRule(), postconditions(), and setPostconditions().

◆ myPreconditions

QList<QStringList> MessageRule::myPreconditions
private

Definition at line 57 of file MessageFile.h.

Referenced by MessageRule(), preconditions(), and setPreconditions().

◆ myReplies

QList<QStringList> MessageRule::myReplies
private

Definition at line 61 of file MessageFile.h.

Referenced by MessageRule(), replies(), and setReplies().


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