public class IsoTileImage extends Image {
public IsoTileImage(Texture texture, IsoPoint position, float scale) {
super(texture);
this.setPosition(position.x, position.y);
this.setScale(scale);
this.addTouchListener();
}
private void addTouchListener() {
this.addListener(new ClickListener() {
@Override
public void clicked(InputEvent event, float x, float y) {
IsoTileImage.this.wasTouched();
}