public void selectCastle(Object object)
	{
		//castleSelected.emit((Castle)castle);
		
		WindowStack ws = WindowStack.getLastInstance();
		if (ws != null) {
			Castle castle = (Castle)object;
			ws.push(new WindowCastle(player, castle, castle.getHero()));
			
			core.WorldMap wm = core.WorldMap.getLastInstance();
			if (wm != null) {
				core.Point pos = wm.getPositionOfObject(castle);
				scroll.ensureVisible(pos.x*64, pos.y*64, 64*4, 64*4);
			}
		}
		
	}