41 mCache(
new int[width * height]),
59 if (x < 0 || x >=
mWidth ||
69 if (x < 0 || x >=
mWidth ||
84 if (x < 0 || x >=
mWidth ||
106 FOR_EACH (Path::const_iterator, i, road)
134 const int scrollX,
const int scrollY)
const
146 for (
int y = startY;
y < endY;
y ++)
150 for (
int x = startX;
x < endX;
x ++)
177 for (
int f =
x + 1; f <
mWidth; f ++)
180 if (item !=
nullptr &&
void setPos(const int x, const int y)
void setType(const int type)
void draw(Graphics *const graphics, const int x, const int y, const int dx, const int dy) const
MapItem * getTile(const int x, const int y) const
int calcMemoryLocal() const
void setTile(const int x, const int y, MapItem *const item)
SpecialLayer(const std::string &name, const int width, const int height)
void addRoad(const Path &road)
void draw(Graphics *const graphics, int startX, int startY, int endX, int endY, const int scrollX, const int scrollY) const
static const int mapTileSize
#define FOR_EACH(type, iter, array)
#define BLOCK_START(name)
std::list< Position > Path