@Override
public void render(int x, int y, int sx, int sy, int width, int height,
boolean lineByLine) {
for (int ty = 0; ty < height; ty++) {
for (int i = 0; i < layers.size(); i++) {
Layer layer = (Layer) layers.get(i);
if (!m_isCurrent) {
layer.render(x, y, sx, sy, width, ty, lineByLine,
tileWidth, tileHeight);
} else if (!layer.name.equalsIgnoreCase("WalkBehind")) {
layer.render(x, y, sx, sy, width, ty, lineByLine,
tileWidth, tileHeight);
}
}
}
}