public void selectedHeroChanging(Hero h) { if (h == null) { updateHeroData (new HUDData ()); } else { updateHeroData (h.getHUDData ()); } }