package teamXXX;

import battlecode.common.*;

public abstract class BasePlayer implements Runnable {

	protected final RobotController rc;
	
	public BasePlayer(RobotController rc) {
		this.rc = rc;
	}

	public final void run() {
		
		initialize();
				
		while (true) {
			
			try{
				
				// *** main loop here ***
			
			}catch(Exception e) {
				System.out.println(e.getMessage());
			}
		}
	}
	
	protected abstract void initialize();

	public RobotController getRobotController() {
		return this.rc;
	}
	
}
