Map Class Reference

#include <Map.h>

List of all members.

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


Detailed Description

Definition at line 28 of file Map.h.


Constructor & Destructor Documentation

Map::Map ( uint32  mapnum  )  [explicit]

Definition at line 39 of file Map.cpp.

Map::~Map (  ) 

Definition at line 46 of file Map.cpp.

References clear().


Member Function Documentation

void Map::clear (  ) 

Definition at line 51 of file Map.cpp.

References dynamicitems, and fixeditems.

Referenced by ~Map().

bool Map::isEmpty (  )  [inline]

Definition at line 41 of file Map.h.

References dynamicitems, and fixeditems.

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  ) 

Definition at line 66 of file Map.cpp.

References dynamicitems, and loadFixedFormatObjects().

void Map::save ( ODataSource ods  ) 

Definition at line 264 of file Map.cpp.

References dynamicitems, and ODataSource::write4().

void Map::unloadFixed (  ) 

Definition at line 172 of file Map.cpp.

References fixeditems.


Friends And Related Function Documentation

friend class CurrentMap [friend]

Definition at line 30 of file Map.h.


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:29:35 2007 for pentagram by  doxygen 1.4.7