public void addNewHero(core.Hero hero)
	{
		core.WorldMap wmap = core.WorldMap.getLastInstance();
		if (wmap != null) {
			player.addHero(hero);
			castle.setHero(hero);
			hero.setInCastle(castle);
			//castle.lockStanding();
			units.setRight(hero);
			core.Point pos = wmap.getPositionOfObject(castle);
			wmap.addObject(pos.x, pos.y, hero);
			//wmap.getMapWidget().objectAt(pos.y, pos.x).setLayer(hero.getLevel(), new WidgetImage(hero.getImageFile(), 64));
			wmap.moveTo(hero, player, pos.x, pos.y, -1, -1);
			core.Mission m = core.Mission.getLastInstance();
			player.setActiveHero(hero);
			if (m != null) {
				m.addHero.emit(hero);
			}
			
		}
	}