/**
 * class Move
 *
 * Represents a move
 *
 * @author Jonatan Pettersson (jonatan_pettersson@hotmail.com)
 * Date: 2066-12-14
 */

public class Move implements Definitions
{
	/** Variables used to describe the move */

	private int pieceMoving; // Type of piece moving
	private int fromIndex; // The square the piece is moving from
	private int toIndex; // The square the piece is moving to	
	private int capture; // Value of the captured piece (0 if no capture)
	private int special; // ordinary, castling long/short, en passant
	// or promotion

	/** *********************************** */	

	// Constructor with parameters
	public Move(
		int pieceMoving, int fromIndex, int toIndex,
		int capture, int special)
	{
		this.pieceMoving = pieceMoving;
		this.fromIndex = fromIndex;
		this.toIndex = toIndex;
		this.capture = capture;
		this.special = special;
	}
}
