#include <collection.h>
Public Methods | |
Collection (QString const &name, QStringList const &authors, QStringList const &emails, QString const &homepage, QString const ©right, QString const &info, int difficulty) | |
Collection (QString const &collection) | |
Collection (QDataStream &stream, int version) | |
void | writeToStream (QDataStream &stream) const |
int | numberOfLevels () const |
QStringList const & | authors () const |
QString | authorEmailLine () const |
void | setAuthors (QStringList const &authors) |
void | setAuthorEmailLine (QString author_email_line) |
QStringList const & | emails () const |
void | setEmails (QStringList const &emails) |
QString const & | homepage () const |
void | setHomepage (QString const &homepage) |
QString const & | copyright () const |
void | setCopyright (QString const ©right) |
QString const & | name () const |
void | setName (QString const &name) |
QString const & | info () const |
void | setInfo (QString const &info) |
int | difficulty () const |
void | setDifficulty (int difficulty) |
Level const & | level (int index) const |
void | addLevel (Level const &level) |
void | insertLevel (Level const &level, int index) |
void | replaceLevel (Level const &level, int index) |
void | removeLevel (int index) |
QString | toText () const |
Private Attributes | |
std::vector< Level > | m_levels |
QStringList | m_authors |
QStringList | m_emails |
QString | m_homepage |
QString | m_copyright |
QString | m_name |
QString | m_info |
int | m_difficulty |
|
Creates an empty collection.
|
|
Loads the level collection from a file in xsokoban format.
|
|
Reads the level collection from a data stream.
|
|
Adds a new level to the end of the collection.
|
|
Returns the author-email-line (the authors with appended email, separated by commas).
|
|
Returns the name of the authors.
|
|
Returns the copyright of the collection.
|
|
Returns the difficulty of the collection.
|
|
Returns the email adresses of the authors.
|
|
Returns the home of the collection/author.
|
|
Returns additional info of the level collection.
|
|
Insert a new level at the given index (see std::vector<>insert for where it is inserted).
|
|
Returns a pointer to the level with the given index.
|
|
Returns the name of the level collection.
|
|
Returns the number of levels.
|
|
Removes the level at the given index.
|
|
Replaces the level at the given index.
|
|
Sets the authors and emails from the given line.
|
|
Sets the name of the authors.
|
|
Sets a new copyright.
|
|
Sets the difficulty of the collection.
|
|
Sets the email adddresses of the authors.
|
|
Sets a new homepage.
|
|
Sets a new info.
|
|
Sets a new name.
|
|
Returns the maps of the level collection in xsb format.
|
|
Writes the level collection to a data stream.
|
|
The authors.
|
|
The copyright.
|
|
The difficulty.
|
|
The email adddresses of the authors.
|
|
The homepage.
|
|
Additional info of the collection.
|
|
The levels of the collection.
|
|
The name of the collection.
|