21 #include <QQmlListProperty>
141 return mAchievementToUnlockOnCompletion;
156 return mAchievementsToRevealOnPassing;
215 QString mAchievementToUnlockOnPassing;
216 QString mAchievementToUnlockOnCompletion;
222 #endif // ENVIRONMENT_H
void screenshotFileNameChanged()
Emitted when screenshotFileName changes.
QString bgmTrack
Name of sound asset file to be played in a loop as background music.
Definition: Environment.h:52
QString achievementToUnlockOnPassing
Name of the achievement to unlock upon "passing" the environment, which is defined as minimally earni...
Definition: Environment.h:63
void achievementsToRevealOnPassingChanged()
Emitted when achievementsToRevealOnPassing changes.
QQmlListProperty< LevelInfo > levelInfos
QML mutable list of levels that compose the Environment.
Definition: Environment.h:48
void setAchievementToUnlockOnCompletion(const QString &value)
Sets achievementToUnlockOnCompletion.
LevelProgression * getLevelProgression() const
Returns levelProgression.
void levelInfosChanged()
Emitted when levelInfos changes.
Metadata for a Level.
Definition: LevelInfo.h:31
LevelProgression levelProgression
LevelProgression to which this LevelInfo belongs, or nullptr if defined out of the context of a Level...
Definition: Environment.h:80
void achievementToUnlockOnPassingChanged()
Emitted when achievementToUnlockOnPassing changes.
Grouping of related Environments together into a logical, ordered list.
Definition: LevelProgression.h:34
const QString & getScreenshotFileName() const
Returns screenshotFileName.
Definition: Environment.h:122
void bgmTrackChanged()
Emitted when bgmTrack changes.
const QList< LevelInfo * > & getLevelInfos() const
Returns levelInfos as a const QList.
Definition: Environment.h:105
void setBGMTrack(const QString &value)
Sets bgmTrack.
void setScreenshotFileName(const QString &value)
Sets screenshotFileName.
void setName(const QString &value)
Sets name.
void setAchievementsToRevealOnPassing(const QStringList &value)
Sets achievementsToRevealOnPassing.
const QString & getName() const
Returns name.
Definition: Environment.h:92
const QString & getBGMTrack() const
Returns bgmTrack.
Definition: Environment.h:113
QString screenshotFileName
Name of image asset file for the Environment screenshot / thumbnail.
Definition: Environment.h:57
QString name
Human-readable name of the Environment.
Definition: Environment.h:43
const QString & getAchievementToUnlockOnPassing() const
Returns achievementToUnlockOnPassing.
Definition: Environment.h:131
QStringList & getAchievementsToRevealOnPassing()
Returns achievementsToRevealOnPassing.
Definition: Environment.h:151
QList< LevelInfo * > & getLevelInfos()
Returns levelInfos as a QList.
Definition: Environment.h:101
void setAchievementToUnlockOnPassing(const QString &value)
Sets achievementToUnlockOnPassing.
const QString & getAchievementToUnlockOnCompletion() const
Returns achievementToUnlockOnCompletion.
Definition: Environment.h:140
Q_INVOKABLE int getIndexOfLevelInfo(const QString &levelName) const
Returns the index of the child LevelInfo identified by levelName, or -1 if not found.
void achievementToUnlockOnCompletionChanged()
Emitted when achievementToUnlockOnCompletion changes.
void nameChanged()
Emitted when name changes.
Q_INVOKABLE LevelInfo * getLevelInfoByName(const QString &levelName) const
Returns the child LevelInfo identified by levelName, or nullptr if not found.
Grouping of related LevelInfos together into an logical, ordered list.
Definition: Environment.h:37
QString achievementToUnlockOnCompletion
Name of the achievement to unlock upon "completing" the environment, which is defined as minimally ea...
Definition: Environment.h:69
QQmlListProperty< LevelInfo > getLevelInfosListProperty()
Returns levelInfos.
QStringList achievementsToRevealOnPassing
Names of the achievements to reveal upon "passing" the environment, which is defined as minimally ear...
Definition: Environment.h:75
const QStringList & getAchievementsToRevealOnPassing() const
Returns achievementsToRevealOnPassing.
Definition: Environment.h:155