Tile tile = realmMap.getTile(rowIndex, colIndex);
int x = (j - minJ) * TILE_WIDTH;
int y = baseY - 65 + tile.getHeight();
// Paint thing (if we haven't already)
Thing thing = realmMap.getThing(rowIndex, colIndex);
if (thing != null && !thing.isOccludedByTerrain()) {
g.drawImage(thing.getSprite(), x, y, null);
}
// Paint character
GameCharacter character = realmMap.getCharacter(rowIndex, colIndex);
if (character != null) {
if (thing != null) { y += thing.getYOffset(); }
g.drawImage(character.getSprite(), x, y, null);
}
}
}
}