public void changeTile(CTile tile, CTile.Type type, int imageIndex = -1) { tile.setTileType(type); if (imageIndex < 0) { imageIndex = tile.getTileIndex() - 1; } tile.setImage(mTiles[imageIndex]); }
public void changeTile(CTile tile, CTile.Type type, int imageIndex = -1) { tile.setTileType(type); if (imageIndex < 0) { imageIndex = tile.getTileIndex() - 1; } tile.setImage(mTiles[imageIndex]); }