public void updateData(core.Player player)
	{
		if (lockCount != 0) return;
		//System.out.println("update");
		
		statusGold.setText(""+player.getResource(core.ResourceType.GOLD));
		statusOre.setText(""+player.getResource(core.ResourceType.ORE));
		statusWood.setText(""+player.getResource(core.ResourceType.WOOD));
		
		
		cleanCastles();
		for (Castle castle: player.getCastles()) {
			addCastle(castle);
		}
		
		minimap.repaint();
		QApplication.processEvents();
	}