Currently showing ../../pathfinder/PathFindingTutorial/target/src/org/newdawn/pathexample/UnitMover.java Line Numbers: [show|hide]

package org.newdawn.pathexample;

import org.newdawn.slick.util.pathfinding.Mover;

/**
 * A mover to represent one of a ID based unit in our example
 * game map
 *
 * @author Kevin Glass
 */
public class UnitMover implements Mover {
	/** The unit ID moving */
	private int type;
	
	/**
	 * Create a new mover to be used while path finder
	 * 
	 * @param type The ID of the unit moving
	 */
	public UnitMover(int type) {
		this.type = type;
	}
	
	/**
	 * Get the ID of the unit moving
	 * 
	 * @return The ID of the unit moving
	 */
	public int getType() {
		return type;
	}
}

Total 33 Lines of Code.
Source code formatted using showsrc by William Denniss