#include <Map.h>
Public Member Functions | |
Map (uint32 mapnum) | |
~Map () | |
void | clear () |
void | loadNonFixed (IDataSource *ds) |
void | loadFixed (IDataSource *ds) |
void | unloadFixed () |
bool | isEmpty () |
void | save (ODataSource *ods) |
bool | load (IDataSource *ids, uint32 version) |
Private Member Functions | |
void | loadFixedFormatObjects (std::list< Item * > &itemlist, IDataSource *ds, uint32 extendedflags) |
Private Attributes | |
std::list< Item * > | fixeditems |
std::list< Item * > | dynamicitems |
uint32 | mapnum |
Friends | |
class | CurrentMap |
Definition at line 28 of file Map.h.
void Map::clear | ( | ) |
Definition at line 51 of file Map.cpp.
References dynamicitems, and fixeditems.
Referenced by ~Map().
bool Map::isEmpty | ( | ) | [inline] |
bool Map::load | ( | IDataSource * | ids, | |
uint32 | version | |||
) |
Definition at line 275 of file Map.cpp.
References dynamicitems, ObjectManager::get_instance(), and IDataSource::read4().
void Map::loadFixed | ( | IDataSource * | ds | ) |
Definition at line 71 of file Map.cpp.
References ItemFactory::createItem(), Item::EXT_FIXED, fixeditems, loadFixedFormatObjects(), mapnum, and Item::setLocation().
void Map::loadFixedFormatObjects | ( | std::list< Item * > & | itemlist, | |
IDataSource * | ds, | |||
uint32 | extendedflags | |||
) | [private] |
Definition at line 182 of file Map.cpp.
References ItemFactory::createItem(), ShapeInfo::family, frame, GameData::get_instance(), GameData::getMainShapes(), IDataSource::getSize(), mapnum, pout, IDataSource::read1(), IDataSource::read2(), IDataSource::readX(), Item::setLocation(), x, and y.
Referenced by loadFixed(), and loadNonFixed().
void Map::loadNonFixed | ( | IDataSource * | ds | ) |
void Map::save | ( | ODataSource * | ods | ) |
void Map::unloadFixed | ( | ) |
friend class CurrentMap [friend] |
std::list<Item*> Map::dynamicitems [private] |
Definition at line 67 of file Map.h.
Referenced by clear(), isEmpty(), load(), CurrentMap::loadMap(), loadNonFixed(), save(), and CurrentMap::writeback().
std::list<Item*> Map::fixeditems [private] |
Definition at line 66 of file Map.h.
Referenced by clear(), isEmpty(), loadFixed(), CurrentMap::loadMap(), unloadFixed(), and CurrentMap::writeback().
uint32 Map::mapnum [private] |
Definition at line 69 of file Map.h.
Referenced by CurrentMap::getNum(), loadFixed(), and loadFixedFormatObjects().