![]()  | 
  
    ManaPlus
    
   | 
 
#include "resources/mapreader.h"#include "configuration.h"#include "graphicsmanager.h"#include "main.h"#include "const/resources/map/map.h"#include "enums/resources/map/collisiontype.h"#include "enums/resources/map/mapitemtype.h"#include "fs/virtfs/fs.h"#include "resources/map/map.h"#include "resources/map/mapheights.h"#include "resources/map/maplayer.h"#include "resources/map/tileset.h"#include "resources/beingcommon.h"#include "resources/animation/animation.h"#include "resources/image/image.h"#include "resources/db/mapdb.h"#include "resources/loaders/atlasloader.h"#include "resources/loaders/emptyatlasloader.h"#include "resources/map/tileanimation.h"#include "resources/loaders/imageloader.h"#include "resources/loaders/walklayerloader.h"#include "utils/base64.h"#include "utils/checkutils.h"#include "utils/delete2.h"#include "utils/stringmap.h"#include "utils/translation/podict.h"#include <zlib.h>#include "debug.h"Go to the source code of this file.
Namespaces | |
| anonymous_namespace{mapreader.cpp} | |
Typedefs | |
| typedef std::map< std::string, xmlNodePtr >::iterator | LayerInfoIterator | 
| typedef std::set< XML::Document * >::iterator | DocIterator | 
Functions | |
| static int | inflateMemory (unsigned char *in, unsigned int inLength, unsigned char *&out, unsigned int &outLength) | 
| static int | inflateMemory (unsigned char *in, unsigned int inLength, unsigned char *&out) | 
| static std::string | resolveRelativePath (std::string base, std::string relative) | 
| static void | loadReplaceLayer (LayerInfoIterator &it, Map *map) | 
| static void | setTile (Map *map, MapLayer *layer, MapLayerTypeT &layerType, MapHeights *heights, int x, int y, int gid) | 
Variables | |
| std::map< std::string, xmlNodePtr > | anonymous_namespace{mapreader.cpp}::mKnownLayers | 
| std::set< XML::Document * > | anonymous_namespace{mapreader.cpp}::mKnownDocs | 
| typedef std::set<XML::Document*>::iterator DocIterator | 
Definition at line 73 of file mapreader.cpp.
| typedef std::map<std::string, xmlNodePtr >::iterator LayerInfoIterator | 
Definition at line 72 of file mapreader.cpp.
      
  | 
  static | 
Definition at line 196 of file mapreader.cpp.
References inflateMemory(), and reportAlways.
      
  | 
  static | 
Inflates either zlib or gzip deflated memory. The inflated memory is expected to be freed by the caller.
Definition at line 124 of file mapreader.cpp.
References A_FALLTHROUGH, CAST_SIZE, and PRAGMACLANG6GCC.
Referenced by inflateMemory(), and MapReader::readBase64Layer().
      
  | 
  static | 
Definition at line 324 of file mapreader.cpp.
References MapReader::readLayer().
      
  | 
  static | 
Definition at line 94 of file mapreader.cpp.
References anonymous_namespace{stringutils.cpp}::base.
Referenced by MapReader::readTileset().
      
  | 
  inlinestatic | 
Definition at line 559 of file mapreader.cpp.
References MapLayerType::ACTIONS, Map::addBlockMask(), BlockType::AIR, CAST_S32, CAST_U8, MapLayerType::COLLISION, CollisionType::COLLISION_AIR, CollisionType::COLLISION_EMPTY, CollisionType::COLLISION_GROUNDTOP, CollisionType::COLLISION_MAX, CollisionType::COLLISION_MONSTER_WALL, CollisionType::COLLISION_PLAYER_WALL, CollisionType::COLLISION_WALL, CollisionType::COLLISION_WATER, ImageSet::get(), Tileset::getFirstGid(), Map::getTilesetWithGid(), Map::getVersion(), BlockType::GROUND, BlockType::GROUNDTOP, MapLayerType::HEIGHTS, Tileset::isEmpty(), BlockType::MONSTERWALL, BlockType::PLAYERWALL, MapHeights::setHeight(), MapLayer::setTile(), MapLayerType::TILES, BlockType::WALL, BlockType::WATER, x, and y.
Referenced by MapReader::readBase64Layer(), MapReader::readCsvLayer(), and MapReader::readLayer().