/FileExtraction/Java_unseen/njustesen_hero-aicademy/src/ai/evolution/RollingThread.java
package ai.evolution;

import game.GameState;

import java.util.concurrent.Callable;

public class RollingThread implements Callable<OnlineEvolution> {
	
	public OnlineEvolution rolling;
	
	public GameState state;

	private SharedStateTable table;
	
	public RollingThread(OnlineEvolution rolling, GameState state, SharedStateTable table) {
		super();
		this.rolling = rolling;
		this.state = state;
		this.table = table;
	}

	@Override
	public OnlineEvolution call() throws Exception {
		rolling.table = table;
		rolling.search(state);
		return rolling;
	} 
	
}
