// Path: src/org/iaie/btree/state/State.java
// public enum State {
//     READY,
//     SUCCESS,
//     FAILURE,
//     RUNNING,
//     ERROR
// }
// 
// Path: src/org/iaie/btree/task/leaf/Conditional.java
// public abstract class Conditional extends Leaf {
// 
//     public Conditional(String name, GameHandler gh) {
//         super(name, gh);
//     }
// }
// 
// Path: src/org/iaie/btree/util/GameHandler.java
// public abstract class GameHandler {
//     protected Game connector; 
//     protected Player self;
//     
//     public GameHandler(Game bwapi, Player self) {
//         this.connector = bwapi;
//         this.self = self;
//     }
// }


import org.iaie.btree.state.State;
import org.iaie.btree.task.leaf.Conditional;
import org.iaie.btree.util.GameHandler;

package bot;


public class FreeWorker extends Conditional {

	public FreeWorker(String name, GameHandler gh) {
		super(name, gh);
	}

	public State execute() {
		try{
			if (((JohnDoe)this.handler).getWorker()) {

// Path: src/org/iaie/btree/state/State.java
// public enum State {
//     READY,
//     SUCCESS,
//     FAILURE,
//     RUNNING,
//     ERROR
// }
// 
// Path: src/org/iaie/btree/task/leaf/Conditional.java
// public abstract class Conditional extends Leaf {
// 
//     public Conditional(String name, GameHandler gh) {
//         super(name, gh);
//     }
// }
// 
// Path: src/org/iaie/btree/util/GameHandler.java
// public abstract class GameHandler {
//     protected Game connector; 
//     protected Player self;
//     
//     public GameHandler(Game bwapi, Player self) {
//         this.connector = bwapi;
//         this.self = self;
//     }
// }


// Path: src/bot/FreeWorker.java
import org.iaie.btree.state.State;
import org.iaie.btree.task.leaf.Conditional;
import org.iaie.btree.util.GameHandler;

package bot;


public class FreeWorker extends Conditional {

	public FreeWorker(String name, GameHandler gh) {
		super(name, gh);
	}

	public State execute() {
		try{
			if (((JohnDoe)this.handler).getWorker()) {

				return State.SUCCESS;
