19 void load(
const QString& filename);
21 void save(
const QString& filename);
38 QList<ArenaElement*>
elementsAt(
const QPoint &pos)
const;
void removeElement(ArenaElement *element)
void clear()
Removes all elements from this arena.
void saveWorld(const QString &filename)
Writes .world format-compliant XML.
void load(const QString &filename)
Deserializes this arena from XML.
QList< ArenaElement * > elementsAt(const QPoint &pos) const
ArenaElementTypeRegistry *const m_typeRegistry
ArenaElement * contextElement(ArenaElement *element) const
ArenaElement * addElement(const QString &elementType)
Creates and adds an element of type elementType.
Arena(ArenaElementTypeRegistry *typeRegistry)
void elementRemoved(ArenaElement *element)
void saveWorldSdf(const QString &filename)
QList< ArenaElement * > elements()
void elementAdded(ArenaElement *element)
QList< ArenaElement * > m_elements
void save(const QString &filename)
Serializes this arena in XML.