package ch.fusun.baron.city.ui;
import ch.fusun.baron.map.ui.gef.editpart.TileChild;
import ch.fusun.baron.player.Dynasty;
import ch.fusun.baron.swt.isometry.components.Sprite;
/**
* Flag for the city
*/
public class CityDynastyTileChild implements TileChild<Dynasty> {
private final Dynasty dynasty;
/**
* @param dynasty
* The dynasty for coat of arms
*/
public CityDynastyTileChild(Dynasty dynasty) {
this.dynasty = dynasty;
}
@Override
public Dynasty getModel() {
return dynasty;
}
@Override
public Sprite getSprite() {
return new Sprite(Activator.getImageForDynasty(dynasty), null, 21);
}
}