24 #ifndef RESOURCES_MAP_MAP_H
25 #define RESOURCES_MAP_MAP_H
62 typedef STD_VECTOR<MapLayer*>
Layers;
80 Map(
const std::string &name,
84 const int tileHeight);
91 ~Map()
override final;
204 const
int destX, const
int destY,
205 const
unsigned char blockWalkmask,
254 const
int x, const
int y,
259 const
int x, const
int y,
268 const
int x, const
int y,
301 const int type)
const
341 {
return mAtlas !=
nullptr; }
std::list< Actor * > Actors
Actors::iterator addActor(Actor *const actor)
void setMask(const int mask)
std::map< int, TileAnimation * > mTileAnimations
void setBlockMask(const int x, const int y, const BlockTypeT type)
Map(const std::string &name, const int width, const int height, const int tileWidth, const int tileHeight)
const MetaTile * getMetaTiles() const
const MapHeights * mHeights
void addParticleEffect(const std::string &effectFile, const int x, const int y, const int w, const int h)
uint8_t getHeightOffset(const int x, const int y) const
void saveExtraLayer() const
unsigned int mOnClosedList
std::vector< ParticleEffectData > mParticleEffects
std::string getCounterName() const
void setAtlas(AtlasResource *const atlas)
void removeActor(const Actors::iterator &iterator)
void setPvpMode(const int mode)
const std::string getFilename() const
void drawAmbientLayers(Graphics *const graphics, const MapLayerPositionT type, const int detail) const
void setDrawLayersFlags(const MapTypeT &n)
SpecialLayer * mTempLayer
bool contains(const int x, const int y) const
void addPortalTile(const std::string &name, const int type, const int x, const int y)
bool isHeightsPresent() const
void updateConditionLayers()
void addTileset(Tileset *const tileset)
std::vector< MapItem * > mMapPortals
void addLayer(MapLayer *const layer)
void updatePortalTile(const std::string &name, const int type, const int x, const int y, const bool addNew)
int getTileHeight() const
void update(const int ticks)
MetaTile *const mMetaTiles
void draw(Graphics *const graphics, int scrollX, int scrollY)
std::string getObjectData(const unsigned x, const unsigned y, const int type) const
bool getWalk(const int x, const int y, const unsigned char blockWalkMask) const
void updateAmbientLayers(const float scrollX, const float scrollY)
void drawCollision(Graphics *const graphics, const int scrollX, const int scrollY, const MapTypeT drawFlags) const
const std::vector< MapItem * > & getPortals() const
Path findPath(const int startX, const int startY, const int destX, const int destY, const unsigned char blockWalkmask, const int maxCost)
int getActorsCount() const
void setCustom(const bool b)
MapTypeT getDrawLayersFlags() const
const std::string getName() const
void addBlockMask(const int x, const int y, const BlockTypeT type)
void addRange(const std::string &name, const int type, const int x, const int y, const int dx, const int dy)
const TileAnimation * getAnimationForGid(const int gid) const
Tileset ** mIndexedTilesets
void initializeParticleEffects() const
SpecialLayer * mSpecialLayer
const std::map< int, TileAnimation * > & getTileAnimations() const
const std::string getGatName() const
SpecialLayer * getSpecialLayer() const
const WalkLayer * getWalkLayer() const
void updateDrawLayersList()
void setActorsFix(const int x, const int y)
void setVersion(const int n)
void addHeights(const MapHeights *const heights)
SpecialLayer * getTempLayer() const
void initializeAmbientLayers()
unsigned char getBlockMask(const int x, const int y) const
void optionChanged(const std::string &value)
int calcMemoryLocal() const
void addPortal(const std::string &name, const int type, const int x, const int y, const int dx, const int dy)
int getAtlasCount() const
int calcMemoryChilds(const int level) const
void addAnimation(const int gid, TileAnimation *const animation)
const std::string getMusicFile() const
MapItem * findPortalXY(const int x, const int y) const
const ObjectsLayer * getObjectsLayer() const
AmbientLayerVector mBackgrounds
const MetaTile * getMetaTile(const int x, const int y) const
std::string getUserMapDirectory() const
void setMusicFile(const std::string &file)
AmbientLayerVector mForegrounds
void setWalkLayer(WalkLayer *const layer)
void setHasWarps(const bool n)
void clearIndexedTilesets()
MapTypeT mDrawLayersFlags
const Tileset * getTilesetWithGid(const int gid) const
void setWalk(const int x, const int y)
#define A_DELETE_COPY(func)
#define A_DEFAULT_COPY(func)
MapLayerPosition ::T MapLayerPositionT
static const int blockWalkMask
std::list< Position > Path
std::vector< MapLayer * > Layers
Layers::const_iterator LayersCIter
std::vector< AmbientLayer * > AmbientLayerVector
std::vector< Tileset * > Tilesets
AmbientLayerVector::const_iterator AmbientLayerVectorCIter
AmbientLayerVector::iterator AmbientLayerVectorIter
ParticleEffectData(const std::string &file0, const int x0, const int y0, const int w0, const int h0)