Crossfire Server, Trunk
CREMapInformation Class Reference

#include <CREMapInformation.h>

+ Inheritance diagram for CREMapInformation:
+ Collaboration diagram for CREMapInformation:

Public Member Functions

QStringList accessedFrom () const
 
void addAccessedFrom (const QString &path)
 
void addAnimation (const QString &anim)
 
void addArchetype (const QString &archetype)
 
void addExitTo (const QString &path)
 
void addFace (const QString &face)
 
void addMessage (const QString &message)
 
void addQuest (const QString &quest)
 
void addRandomMap (RandomMap *map)
 
QStringList animations () const
 
QStringList archetypes () const
 
const QString & backgroundMusic ()
 
int computedDifficulty () const
 
 CREMapInformation ()
 
 CREMapInformation (const QString &path)
 
int difficulty () const
 
virtual QString displayName () const override
 
QStringList exitsTo () const
 
qint64 experience () const
 
QStringList faces () const
 
const QDateTime & mapTime () const
 
QStringList messages () const
 
const QString & name () const
 
const QString & path () const
 
QStringList quests () const
 
QList< RandomMap * > randomMaps () const
 
const QString & region () const
 
void setBackgroundMusic (const QString &music)
 
void setComputedDifficulty (int computed)
 
void setDifficulty (int difficulty)
 
void setExperience (qint64 experience)
 
void setMapTime (const QDateTime &date)
 
void setName (const QString &name)
 
void setPath (const QString &path)
 
void setRegion (const QString &region)
 
void setShopGreed (double greed)
 
void setShopMax (quint64 max)
 
void setShopMin (quint64 min)
 
void setShopRace (const QString &race)
 
double shopGreed () const
 
QHash< QString, int > & shopItems ()
 
const QHash< QString, int > & shopItems () const
 
quint64 shopMax () const
 
quint64 shopMin () const
 
const QString & shopRace () const
 
virtual PossibleUse uses (const AssetWrapper *asset, std::string &) const override
 
virtual ~CREMapInformation ()
 
- 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 ~AssetWrapper () override
 

Protected Attributes

QStringList myAccessedFrom
 
QSet< QString > myAnimations
 
QStringList myArchetypes
 
QString myBackgroundMusic
 
int myComputedDifficulty
 
int myDifficulty
 
QStringList myExitsTo
 
qint64 myExperience
 
QSet< QString > myFaces
 
QDateTime myMapTime
 
QStringList myMessages
 
QString myName
 
QString myPath
 
QStringList myQuests
 
QList< RandomMap * > myRandomMaps
 
QString myRegion
 
double myShopGreed
 
QHash< QString, int > myShopItems
 
quint64 myShopMax
 
quint64 myShopMin
 
QString myShopRace
 
- Protected Attributes inherited from AssetWrapper
QString myPanelName
 
AssetWrappermyParent
 

Properties

int computedDifficulty
 
int difficulty
 
qint64 experience
 
QString name
 
QString path
 
- Properties inherited from AssetWrapper
AssetWrapper self
 

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)
 

Detailed Description

Definition at line 27 of file CREMapInformation.h.

Constructor & Destructor Documentation

◆ CREMapInformation() [1/2]

CREMapInformation::CREMapInformation ( )

◆ CREMapInformation() [2/2]

CREMapInformation::CREMapInformation ( const QString &  path)

◆ ~CREMapInformation()

CREMapInformation::~CREMapInformation ( )
virtual

Definition at line 42 of file CREMapInformation.cpp.

References myRandomMaps.

Member Function Documentation

◆ accessedFrom()

QStringList CREMapInformation::accessedFrom ( ) const

Definition at line 136 of file CREMapInformation.cpp.

References myAccessedFrom.

Referenced by CREMapPanel::updateItem().

+ Here is the caller graph for this function:

◆ addAccessedFrom()

void CREMapInformation::addAccessedFrom ( const QString &  path)

Definition at line 141 of file CREMapInformation.cpp.

References myAccessedFrom, and path.

Referenced by CREMapInformationManager::checkItem(), and CREMapInformationManager::process().

+ Here is the caller graph for this function:

◆ addAnimation()

void CREMapInformation::addAnimation ( const QString &  anim)

Definition at line 110 of file CREMapInformation.cpp.

References animate::anim, and myAnimations.

Referenced by CREMapInformationManager::checkItem().

+ Here is the caller graph for this function:

◆ addArchetype()

void CREMapInformation::addArchetype ( const QString &  archetype)

Definition at line 89 of file CREMapInformation.cpp.

References myArchetypes.

Referenced by CREMapInformationManager::checkItem().

+ Here is the caller graph for this function:

◆ addExitTo()

void CREMapInformation::addExitTo ( const QString &  path)

Definition at line 130 of file CREMapInformation.cpp.

References myExitsTo, and path.

Referenced by CREMapInformationManager::checkItem(), and CREMapInformationManager::process().

+ Here is the caller graph for this function:

◆ addFace()

void CREMapInformation::addFace ( const QString &  face)

Definition at line 100 of file CREMapInformation.cpp.

References myFaces.

Referenced by CREMapInformationManager::checkItem().

+ Here is the caller graph for this function:

◆ addMessage()

void CREMapInformation::addMessage ( const QString &  message)

Definition at line 191 of file CREMapInformation.cpp.

References diamondslots::message, and myMessages.

◆ addQuest()

void CREMapInformation::addQuest ( const QString &  quest)

Definition at line 202 of file CREMapInformation.cpp.

References myQuests.

◆ addRandomMap()

void CREMapInformation::addRandomMap ( RandomMap map)

Definition at line 263 of file CREMapInformation.cpp.

References disinfect::map, and myRandomMaps.

Referenced by CREMapInformationManager::checkItem().

+ Here is the caller graph for this function:

◆ animations()

QStringList CREMapInformation::animations ( ) const

Definition at line 105 of file CREMapInformation.cpp.

References myAnimations.

◆ archetypes()

QStringList CREMapInformation::archetypes ( ) const

Definition at line 84 of file CREMapInformation.cpp.

References myArchetypes.

◆ backgroundMusic()

const QString & CREMapInformation::backgroundMusic ( )

Definition at line 74 of file CREMapInformation.cpp.

References myBackgroundMusic.

Referenced by CREMapPanel::updateItem().

+ Here is the caller graph for this function:

◆ computedDifficulty()

int CREMapInformation::computedDifficulty ( ) const

◆ difficulty()

int CREMapInformation::difficulty ( ) const

◆ displayName()

QString CREMapInformation::displayName ( ) const
overridevirtual

Implements AssetWrapper.

Definition at line 47 of file CREMapInformation.cpp.

References myName, and myPath.

Referenced by CRERandomMapPanel::updateItem().

+ Here is the caller graph for this function:

◆ exitsTo()

QStringList CREMapInformation::exitsTo ( ) const

Definition at line 125 of file CREMapInformation.cpp.

References myExitsTo.

Referenced by CREMapInformationManager::process(), and CREMapPanel::updateItem().

+ Here is the caller graph for this function:

◆ experience()

qint64 CREMapInformation::experience ( ) const

◆ faces()

QStringList CREMapInformation::faces ( ) const

Definition at line 95 of file CREMapInformation.cpp.

References myFaces.

◆ mapTime()

const QDateTime & CREMapInformation::mapTime ( ) const

Definition at line 115 of file CREMapInformation.cpp.

References myMapTime.

Referenced by CREMapInformationManager::process().

+ Here is the caller graph for this function:

◆ messages()

QStringList CREMapInformation::messages ( ) const

Definition at line 186 of file CREMapInformation.cpp.

References myMessages.

◆ name()

const QString& CREMapInformation::name ( ) const

◆ path()

const QString& CREMapInformation::path ( ) const

◆ quests()

QStringList CREMapInformation::quests ( ) const

Definition at line 197 of file CREMapInformation.cpp.

References myQuests.

◆ randomMaps()

QList< RandomMap * > CREMapInformation::randomMaps ( ) const

Definition at line 258 of file CREMapInformation.cpp.

References myRandomMaps.

◆ region()

const QString & CREMapInformation::region ( ) const

Definition at line 177 of file CREMapInformation.cpp.

References myRegion.

Referenced by setRegion().

+ Here is the caller graph for this function:

◆ setBackgroundMusic()

void CREMapInformation::setBackgroundMusic ( const QString &  music)

Definition at line 79 of file CREMapInformation.cpp.

References myBackgroundMusic.

Referenced by CREMapInformationManager::process().

+ Here is the caller graph for this function:

◆ setComputedDifficulty()

void CREMapInformation::setComputedDifficulty ( int  computed)

Definition at line 162 of file CREMapInformation.cpp.

References computedDifficulty, and myComputedDifficulty.

Referenced by CREMapInformationManager::process().

+ Here is the caller graph for this function:

◆ setDifficulty()

void CREMapInformation::setDifficulty ( int  difficulty)

Definition at line 152 of file CREMapInformation.cpp.

References difficulty, and myDifficulty.

Referenced by CREMapInformationManager::process().

+ Here is the caller graph for this function:

◆ setExperience()

void CREMapInformation::setExperience ( qint64  experience)

Definition at line 172 of file CREMapInformation.cpp.

References experience, and myExperience.

Referenced by CREMapInformationManager::checkItem().

+ Here is the caller graph for this function:

◆ setMapTime()

void CREMapInformation::setMapTime ( const QDateTime &  date)

Definition at line 120 of file CREMapInformation.cpp.

References send::date, and myMapTime.

Referenced by CREMapInformationManager::process().

+ Here is the caller graph for this function:

◆ setName()

void CREMapInformation::setName ( const QString &  name)

Definition at line 69 of file CREMapInformation.cpp.

References myName, and name.

Referenced by CREMapInformationManager::process().

+ Here is the caller graph for this function:

◆ setPath()

void CREMapInformation::setPath ( const QString &  path)

Definition at line 59 of file CREMapInformation.cpp.

References myPath, and path.

◆ setRegion()

void CREMapInformation::setRegion ( const QString &  region)

Definition at line 181 of file CREMapInformation.cpp.

References myRegion, and region().

Referenced by CREMapInformationManager::process().

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

◆ setShopGreed()

void CREMapInformation::setShopGreed ( double  greed)

Definition at line 223 of file CREMapInformation.cpp.

References myShopGreed.

Referenced by CREMapInformationManager::process().

+ Here is the caller graph for this function:

◆ setShopMax()

void CREMapInformation::setShopMax ( quint64  max)

Definition at line 253 of file CREMapInformation.cpp.

References say::max, and myShopMax.

Referenced by CREMapInformationManager::process().

+ Here is the caller graph for this function:

◆ setShopMin()

void CREMapInformation::setShopMin ( quint64  min)

Definition at line 243 of file CREMapInformation.cpp.

References myShopMin.

Referenced by CREMapInformationManager::process().

+ Here is the caller graph for this function:

◆ setShopRace()

void CREMapInformation::setShopRace ( const QString &  race)

Definition at line 233 of file CREMapInformation.cpp.

References myShopRace.

Referenced by CREMapInformationManager::process().

+ Here is the caller graph for this function:

◆ shopGreed()

double CREMapInformation::shopGreed ( ) const

Definition at line 218 of file CREMapInformation.cpp.

References myShopGreed.

◆ shopItems() [1/2]

const QHash< QString, int > & CREMapInformation::shopItems ( )

Definition at line 208 of file CREMapInformation.cpp.

References myShopItems.

Referenced by CREMapInformationManager::process().

+ Here is the caller graph for this function:

◆ shopItems() [2/2]

const QHash<QString, int>& CREMapInformation::shopItems ( ) const

◆ shopMax()

quint64 CREMapInformation::shopMax ( ) const

Definition at line 248 of file CREMapInformation.cpp.

References myShopMax.

◆ shopMin()

quint64 CREMapInformation::shopMin ( ) const

Definition at line 238 of file CREMapInformation.cpp.

References myShopMin.

◆ shopRace()

const QString & CREMapInformation::shopRace ( ) const

Definition at line 228 of file CREMapInformation.cpp.

References myShopRace.

◆ uses()

AssetWrapper::PossibleUse CREMapInformation::uses ( const AssetWrapper asset,
std::string &  hint 
) const
overridevirtual

Reimplemented from AssetWrapper.

Definition at line 268 of file CREMapInformation.cpp.

References animate::anim, archininventory::arch, AssetWrapper::DoesntUse, ScriptFile::forMap(), disinfect::map, myAnimations, myArchetypes, myFaces, myQuests, myRandomMaps, and AssetWrapper::Uses.

+ Here is the call graph for this function:

Field Documentation

◆ myAccessedFrom

QStringList CREMapInformation::myAccessedFrom
protected

Definition at line 114 of file CREMapInformation.h.

Referenced by accessedFrom(), and addAccessedFrom().

◆ myAnimations

QSet<QString> CREMapInformation::myAnimations
protected

Definition at line 111 of file CREMapInformation.h.

Referenced by addAnimation(), animations(), and uses().

◆ myArchetypes

QStringList CREMapInformation::myArchetypes
protected

Definition at line 109 of file CREMapInformation.h.

Referenced by addArchetype(), archetypes(), and uses().

◆ myBackgroundMusic

QString CREMapInformation::myBackgroundMusic
protected

Definition at line 126 of file CREMapInformation.h.

Referenced by backgroundMusic(), and setBackgroundMusic().

◆ myComputedDifficulty

int CREMapInformation::myComputedDifficulty
protected

Definition at line 116 of file CREMapInformation.h.

Referenced by CREMapInformation(), and setComputedDifficulty().

◆ myDifficulty

int CREMapInformation::myDifficulty
protected

Definition at line 115 of file CREMapInformation.h.

Referenced by CREMapInformation(), and setDifficulty().

◆ myExitsTo

QStringList CREMapInformation::myExitsTo
protected

Definition at line 113 of file CREMapInformation.h.

Referenced by addExitTo(), and exitsTo().

◆ myExperience

qint64 CREMapInformation::myExperience
protected

Definition at line 117 of file CREMapInformation.h.

Referenced by CREMapInformation(), and setExperience().

◆ myFaces

QSet<QString> CREMapInformation::myFaces
protected

Definition at line 110 of file CREMapInformation.h.

Referenced by addFace(), faces(), and uses().

◆ myMapTime

QDateTime CREMapInformation::myMapTime
protected

Definition at line 112 of file CREMapInformation.h.

Referenced by mapTime(), and setMapTime().

◆ myMessages

QStringList CREMapInformation::myMessages
protected

Definition at line 119 of file CREMapInformation.h.

Referenced by addMessage(), and messages().

◆ myName

QString CREMapInformation::myName
protected

Definition at line 108 of file CREMapInformation.h.

Referenced by displayName(), and setName().

◆ myPath

QString CREMapInformation::myPath
protected

Definition at line 107 of file CREMapInformation.h.

Referenced by CREMapInformation(), displayName(), and setPath().

◆ myQuests

QStringList CREMapInformation::myQuests
protected

Definition at line 120 of file CREMapInformation.h.

Referenced by addQuest(), quests(), and uses().

◆ myRandomMaps

QList<RandomMap*> CREMapInformation::myRandomMaps
protected

Definition at line 125 of file CREMapInformation.h.

Referenced by addRandomMap(), randomMaps(), uses(), and ~CREMapInformation().

◆ myRegion

QString CREMapInformation::myRegion
protected

Definition at line 118 of file CREMapInformation.h.

Referenced by region(), and setRegion().

◆ myShopGreed

double CREMapInformation::myShopGreed
protected

Definition at line 122 of file CREMapInformation.h.

Referenced by CREMapInformation(), setShopGreed(), and shopGreed().

◆ myShopItems

QHash<QString, int> CREMapInformation::myShopItems
protected

Definition at line 121 of file CREMapInformation.h.

Referenced by shopItems().

◆ myShopMax

quint64 CREMapInformation::myShopMax
protected

Definition at line 124 of file CREMapInformation.h.

Referenced by CREMapInformation(), setShopMax(), and shopMax().

◆ myShopMin

quint64 CREMapInformation::myShopMin
protected

Definition at line 124 of file CREMapInformation.h.

Referenced by CREMapInformation(), setShopMin(), and shopMin().

◆ myShopRace

QString CREMapInformation::myShopRace
protected

Definition at line 123 of file CREMapInformation.h.

Referenced by setShopRace(), and shopRace().

Property Documentation

◆ computedDifficulty

int CREMapInformation::computedDifficulty
read

Definition at line 34 of file CREMapInformation.h.

Referenced by setComputedDifficulty().

◆ difficulty

int CREMapInformation::difficulty
read

Definition at line 33 of file CREMapInformation.h.

Referenced by CREMapInformationManager::process(), and setDifficulty().

◆ experience

qint64 CREMapInformation::experience
read

◆ name

const QString & CREMapInformation::name
read

Definition at line 32 of file CREMapInformation.h.

Referenced by setName(), and CREMapPanel::updateItem().

◆ path

const QString & CREMapInformation::path
read

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