30 #include <QApplication> 39 #define DIR_NORTHEAST 2 40 #define DIR_NORTHWEST 3 44 #define DIR_SOUTHEAST 7 45 #define DIR_SOUTHWEST 8 58 Q_DECLARE_TR_FUNCTIONS(
TRoom)
64 bool setExit(
int to,
int direction);
67 bool hasExit(
int direction)
const;
86 bool setArea(
int,
bool isToDeferAreaRelatedRecalculations =
false);
116 void audit(QHash<int, int>, QHash<int, int>);
118 void restore(QDataStream& ifs,
int roomID,
int version);
127 QMap<
QString, QList<QPointF>>&,
128 QMap<QString, QColor>&,
129 QMap<QString, Qt::PenStyle>&,
130 QMap<QString, bool>&,
193 #endif // MUDLET_TROOM_H
void calcRoomDimensions()
void setExitWeight(const QString &cmd, int w)
bool setArea(int, bool isToDeferAreaRelatedRecalculations=false)
bool hasExitOrSpecialExit(const QString &) const
void auditExits(QHash< int, int >)
const bool setDoor(const QString &cmd, int doorStatus)
QMap< QString, int > exitWeights
QMultiMap< int, QString > other
void setExitStub(int direction, bool status)
bool hasExitWeight(const QString &cmd)
bool hasExitStub(int direction)
void restore(QDataStream &ifs, int roomID, int version)
void setNorthwest(int id)
void audit(QHash< int, int >, QHash< int, int >)
bool hasSpecialExitLock(int, const QString &)
void auditExit(int &, int, QString, QString, QMap< QString, int > &, QSet< int > &, QSet< int > &, QMap< QString, int > &, QMap< QString, QList< QPointF >> &, QMap< QString, QColor > &, QMap< QString, Qt::PenStyle > &, QMap< QString, bool > &, QHash< int, int >)
void setNortheast(int id)
int getDoor(const QString &cmd)
QMap< QString, QList< QPointF > > customLines
QMap< QString, bool > customLinesArrow
QMap< QString, Qt::PenStyle > customLinesStyle
QMap< QString, QColor > customLinesColor
void setExitLock(int, bool)
bool setExit(int to, int direction)
bool hasExit(int direction) const
void setSpecialExit(int to, const QString &cmd)
void setSouthwest(int id)
Q_DECLARE_TR_FUNCTIONS(TRoom) public ~TRoom()
void removeAllSpecialExitsToRoom(int _id)
QMap< QString, QString > userData
int getExit(int direction)
QMap< QString, int > doors
void setSoutheast(int id)
QHash< int, int > getExits()
void setSpecialExitLock(int to, const QString &cmd, bool doLock)
int getExitWeight(const QString &cmd)
const QMap< QString, int > & getExitWeights() const
const QString dirCodeToDisplayName(int dirCode)
const QMultiMap< int, QString > & getOtherMap() const