Documentation generated. Some errors corrected in the code.
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.4.2-02) on Tue Jan 10 15:14:10 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:37 GMT 2006 -->
|
||||
<TITLE>
|
||||
Move
|
||||
</TITLE>
|
||||
@ -17,6 +17,8 @@ function windowTitle()
|
||||
parent.document.title="Move";
|
||||
}
|
||||
</SCRIPT>
|
||||
<NOSCRIPT>
|
||||
</NOSCRIPT>
|
||||
|
||||
</HEAD>
|
||||
|
||||
@ -28,11 +30,11 @@ function windowTitle()
|
||||
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
||||
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
||||
<TR>
|
||||
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
||||
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
||||
<A NAME="navbar_top_firstrow"><!-- --></A>
|
||||
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
||||
<TR ALIGN="center" VALIGN="top">
|
||||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
||||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../suicideChess/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
||||
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
||||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Move.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
||||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
||||
@ -52,7 +54,7 @@ function windowTitle()
|
||||
<A HREF="../suicideChess/Board.NoPieceOnSquare.html" title="class in suicideChess"><B>PREV CLASS</B></A>
|
||||
<A HREF="../suicideChess/Move.NotAValidMoveException.html" title="class in suicideChess"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../index.html" target="_top"><B>FRAMES</B></A>
|
||||
<A HREF="../index.html?suicideChess/Move.html" target="_top"><B>FRAMES</B></A>
|
||||
<A HREF="Move.html" target="_top"><B>NO FRAMES</B></A>
|
||||
<SCRIPT type="text/javascript">
|
||||
<!--
|
||||
@ -65,6 +67,7 @@ function windowTitle()
|
||||
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
|
||||
</NOSCRIPT>
|
||||
|
||||
|
||||
</FONT></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
@ -86,11 +89,12 @@ suicideChess</FONT>
|
||||
Class Move</H2>
|
||||
<PRE>
|
||||
java.lang.Object
|
||||
<IMG SRC="../resources/inherit.gif" ALT="extended by"><B>suicideChess.Move</B>
|
||||
<IMG SRC="../resources/inherit.gif" ALT="extended by "><B>suicideChess.Move</B>
|
||||
</PRE>
|
||||
<HR>
|
||||
<DL>
|
||||
<DT>public class <B>Move</B><DT>extends java.lang.Object</DL>
|
||||
<DT><PRE>public class <B>Move</B><DT>extends java.lang.Object</DL>
|
||||
</PRE>
|
||||
|
||||
<P>
|
||||
This class is used for moves representation.
|
||||
@ -99,9 +103,9 @@ This class is used for moves representation.
|
||||
<P>
|
||||
<DL>
|
||||
<DT><B>Version:</B></DT>
|
||||
<DD>$LastChangedRevision: 19 $, $LastChangedDate: 2006-01-10 12:35:32 +0000 (Tue, 10 Jan 2006) $</DD>
|
||||
<DD>$LastChangedRevision: 27 $, $LastChangedDate: 2006-01-13 16:48:21 +0000 (Fri, 13 Jan 2006) $</DD>
|
||||
<DT><B>Author:</B></DT>
|
||||
<DD>Jean-Baptiste Hétier</DD>
|
||||
<DD>Jean-Baptiste Hétier</DD>
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
@ -111,8 +115,8 @@ This class is used for moves representation.
|
||||
<A NAME="nested_class_summary"><!-- --></A>
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||||
<TD COLSPAN=2><FONT SIZE="+2">
|
||||
<B>Nested Class Summary</B></FONT></TD>
|
||||
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||||
<B>Nested Class Summary</B></FONT></TH>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
@ -124,16 +128,33 @@ This class is used for moves representation.
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
|
||||
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
|
||||
<A NAME="constructor_summary"><!-- --></A>
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||||
<TD COLSPAN=2><FONT SIZE="+2">
|
||||
<B>Constructor Summary</B></FONT></TD>
|
||||
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||||
<B>Constructor Summary</B></FONT></TH>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD><CODE><B><A HREF="../suicideChess/Move.html#Move(suicideChess.Square, suicideChess.Square, suicideChess.Piece, suicideChess.Piece, suicideChess.Piece)">Move</A></B>(<A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A> fromSquare,
|
||||
<A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A> toSquare,
|
||||
<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A> movingPiece,
|
||||
<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A> capturePiece,
|
||||
<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A> promotionPiece)</CODE>
|
||||
|
||||
<BR>
|
||||
This is the constructor of the class.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD><CODE><B><A HREF="../suicideChess/Move.html#Move(suicideChess.Square, suicideChess.Square, suicideChess.Square, suicideChess.Piece, boolean)">Move</A></B>(<A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A> fromSquare,
|
||||
<A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A> toSquare,
|
||||
<A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A> enPassantSquare,
|
||||
<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A> movingPiece,
|
||||
boolean isCapture)</CODE>
|
||||
|
||||
<BR>
|
||||
This is the constructor of the class.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD><CODE><B><A HREF="../suicideChess/Move.html#Move(java.lang.String, suicideChess.Board)">Move</A></B>(java.lang.String move,
|
||||
@ -149,8 +170,8 @@ This class is used for moves representation.
|
||||
<A NAME="method_summary"><!-- --></A>
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||||
<TD COLSPAN=2><FONT SIZE="+2">
|
||||
<B>Method Summary</B></FONT></TD>
|
||||
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||||
<B>Method Summary</B></FONT></TH>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
@ -162,35 +183,51 @@ This class is used for moves representation.
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> suicideChess.Square</CODE></FONT></TD>
|
||||
<CODE> boolean</CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../suicideChess/Move.html#enablesEnPassant()">enablesEnPassant</A></B>()</CODE>
|
||||
|
||||
<BR>
|
||||
Returns a boolean saying is a Move makes 'en passant' move possible.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> <A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A></CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../suicideChess/Move.html#fromSquare()">fromSquare</A></B>()</CODE>
|
||||
|
||||
<BR>
|
||||
Returns the <CODE>Square</CODE> to move from in a Move</TD>
|
||||
Returns the <A HREF="../suicideChess/Square.html" title="class in suicideChess"><CODE>Square</CODE></A> to move from in a Move</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> suicideChess.Piece</CODE></FONT></TD>
|
||||
<CODE> <A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A></CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../suicideChess/Move.html#getCapturedPiece()">getCapturedPiece</A></B>()</CODE>
|
||||
|
||||
<BR>
|
||||
Returns the <CODE>Piece</CODE> to be captured in a Move</TD>
|
||||
Returns the <A HREF="../suicideChess/Piece.html" title="class in suicideChess"><CODE>Piece</CODE></A> to be captured in a Move</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> suicideChess.Piece</CODE></FONT></TD>
|
||||
<CODE> <A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A></CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../suicideChess/Move.html#getEnPassantSquare()">getEnPassantSquare</A></B>()</CODE>
|
||||
|
||||
<BR>
|
||||
Returns the enPassant Square for a move.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> <A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A></CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../suicideChess/Move.html#getMovingPiece()">getMovingPiece</A></B>()</CODE>
|
||||
|
||||
<BR>
|
||||
Returns the moving <CODE>piece</CODE> of a Move.</TD>
|
||||
Returns the moving <A HREF="../suicideChess/Piece.html" title="class in suicideChess"><CODE>Piece</CODE></A> of a Move.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> suicideChess.Piece</CODE></FONT></TD>
|
||||
<CODE> <A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A></CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../suicideChess/Move.html#getPromotionPiece()">getPromotionPiece</A></B>()</CODE>
|
||||
|
||||
<BR>
|
||||
Returns the promotion <CODE>Piece</CODE> of a Move</TD>
|
||||
Returns the promotion <A HREF="../suicideChess/Piece.html" title="class in suicideChess"><CODE>Piece</CODE></A> of a Move</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
@ -203,6 +240,14 @@ This class is used for moves representation.
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> boolean</CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../suicideChess/Move.html#isEnPassant()">isEnPassant</A></B>()</CODE>
|
||||
|
||||
<BR>
|
||||
Returns a boolean saying is a Move is an 'en passant' move.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> boolean</CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../suicideChess/Move.html#isPromotionMove()">isPromotionMove</A></B>()</CODE>
|
||||
|
||||
<BR>
|
||||
@ -210,11 +255,19 @@ This class is used for moves representation.
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> suicideChess.Square</CODE></FONT></TD>
|
||||
<CODE> boolean</CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../suicideChess/Move.html#isSimpleEqual(suicideChess.Move)">isSimpleEqual</A></B>(<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A> that)</CODE>
|
||||
|
||||
<BR>
|
||||
Tests the equality of two moves by just looking at the fromSquare and the toSquare</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> <A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A></CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../suicideChess/Move.html#toSquare()">toSquare</A></B>()</CODE>
|
||||
|
||||
<BR>
|
||||
Returns the <CODE>Square</CODE> to move to in a Move</TD>
|
||||
Returns the <A HREF="../suicideChess/Square.html" title="class in suicideChess"><CODE>Square</CODE></A> to move to in a Move</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
@ -228,7 +281,7 @@ This class is used for moves representation.
|
||||
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
||||
<TD><B>Methods inherited from class java.lang.Object</B></TD>
|
||||
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
|
||||
@ -237,16 +290,13 @@ This class is used for moves representation.
|
||||
|
||||
<P>
|
||||
|
||||
<!-- ============ FIELD DETAIL =========== -->
|
||||
|
||||
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
|
||||
<A NAME="constructor_detail"><!-- --></A>
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||||
<TD COLSPAN=1><FONT SIZE="+2">
|
||||
<B>Constructor Detail</B></FONT></TD>
|
||||
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
||||
<B>Constructor Detail</B></FONT></TH>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
@ -256,37 +306,79 @@ Move</H3>
|
||||
public <B>Move</B>(java.lang.String move,
|
||||
<A HREF="../suicideChess/Board.html" title="class in suicideChess">Board</A> board)
|
||||
throws <A HREF="../suicideChess/Move.NotAValidMoveException.html" title="class in suicideChess">Move.NotAValidMoveException</A>,
|
||||
suicideChess.Square.NotAValidSquare</PRE>
|
||||
<A HREF="../suicideChess/Square.NotAValidSquare.html" title="class in suicideChess">Square.NotAValidSquare</A></PRE>
|
||||
<DL>
|
||||
<DD>This is the constructor of the class.
|
||||
<P>
|
||||
<DL>
|
||||
<DT><B>Parameters:</B><DD><CODE>move</CODE> - A String containing of type "e2e4" (4 chars), "b7b8q" (5 chars) for promotions.
|
||||
It is the standard algebraic notation used for chess.<DD><CODE>board</CODE> - A <A HREF="../suicideChess/Board.html" title="class in suicideChess"><CODE>Board</CODE></A> to be able to locate the pieces.
|
||||
<DT><B>Throws:</B>
|
||||
<DD><CODE><A HREF="../suicideChess/Move.NotAValidMoveException.html" title="class in suicideChess">Move.NotAValidMoveException</A></CODE> - When the String is not legal (too long or too short).
|
||||
<DD><CODE>NotAValidSquare</CODE> - It the String is not legal (not standard algebraic notation).
|
||||
<DD><CODE>suicideChess.Square.NotAValidSquare</CODE><DT><B>See Also:</B><DD><A HREF="../suicideChess/Board.html" title="class in suicideChess"><CODE>Board</CODE></A></DL>
|
||||
<DD><CODE><A HREF="../suicideChess/Square.NotAValidSquare.html" title="class in suicideChess">Square.NotAValidSquare</A></CODE> - It the String is not legal (not standard algebraic notation).<DT><B>See Also:</B><DD><A HREF="../suicideChess/Board.html" title="class in suicideChess"><CODE>Board</CODE></A></DL>
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
<A NAME="Move(suicideChess.Square, suicideChess.Square, suicideChess.Piece, suicideChess.Piece, suicideChess.Piece)"><!-- --></A><H3>
|
||||
Move</H3>
|
||||
<PRE>
|
||||
public <B>Move</B>(<A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A> fromSquare,
|
||||
<A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A> toSquare,
|
||||
<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A> movingPiece,
|
||||
<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A> capturePiece,
|
||||
<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A> promotionPiece)
|
||||
throws <A HREF="../suicideChess/Square.NotAValidSquare.html" title="class in suicideChess">Square.NotAValidSquare</A></PRE>
|
||||
<DL>
|
||||
<DD>This is the constructor of the class.
|
||||
<P>
|
||||
<DL>
|
||||
<DT><B>Parameters:</B><DD><CODE>fromSquare</CODE> - The <A HREF="../suicideChess/Square.html" title="class in suicideChess"><CODE>Square</CODE></A> to move from.<DD><CODE>toSquare</CODE> - The <A HREF="../suicideChess/Square.html" title="class in suicideChess"><CODE>Square</CODE></A> to move to.<DD><CODE>movingPiece</CODE> - The <A HREF="../suicideChess/Piece.html" title="class in suicideChess"><CODE>Piece</CODE></A> to be moved.<DD><CODE>capturePiece</CODE> - The <A HREF="../suicideChess/Piece.html" title="class in suicideChess"><CODE>Piece</CODE></A> to be captured. Piece.NONE if none.<DD><CODE>promotionPiece</CODE> - The {link Piece} to be promoted to. Piece.NONE if none.
|
||||
<DT><B>Throws:</B>
|
||||
<DD><CODE><A HREF="../suicideChess/Square.NotAValidSquare.html" title="class in suicideChess">Square.NotAValidSquare</A></CODE> - If Squares are not valid.<DT><B>See Also:</B><DD><A HREF="../suicideChess/Square.html" title="class in suicideChess"><CODE>Square</CODE></A>,
|
||||
<A HREF="../suicideChess/Piece.html" title="class in suicideChess"><CODE>Piece</CODE></A></DL>
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
<A NAME="Move(suicideChess.Square, suicideChess.Square, suicideChess.Square, suicideChess.Piece, boolean)"><!-- --></A><H3>
|
||||
Move</H3>
|
||||
<PRE>
|
||||
public <B>Move</B>(<A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A> fromSquare,
|
||||
<A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A> toSquare,
|
||||
<A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A> enPassantSquare,
|
||||
<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A> movingPiece,
|
||||
boolean isCapture)
|
||||
throws <A HREF="../suicideChess/Square.NotAValidSquare.html" title="class in suicideChess">Square.NotAValidSquare</A></PRE>
|
||||
<DL>
|
||||
<DD>This is the constructor of the class.
|
||||
It should be used only for moves that enable or are 'en passant' capture.
|
||||
<P>
|
||||
<DL>
|
||||
<DT><B>Parameters:</B><DD><CODE>fromSquare</CODE> - The <A HREF="../suicideChess/Square.html" title="class in suicideChess"><CODE>Square</CODE></A> to move from.<DD><CODE>toSquare</CODE> - The <A HREF="../suicideChess/Square.html" title="class in suicideChess"><CODE>Square</CODE></A> to move to.<DD><CODE>enPassantSquare</CODE> - The 'en passant' <A HREF="../suicideChess/Square.html" title="class in suicideChess"><CODE>Square</CODE></A>.<DD><CODE>movingPiece</CODE> - The <A HREF="../suicideChess/Piece.html" title="class in suicideChess"><CODE>Piece</CODE></A> to be moved.<DD><CODE>isCapture</CODE> - This boolean is used to differenciate 'en passant' captures from moves that simply enable 'en passant' capture.
|
||||
<DT><B>Throws:</B>
|
||||
<DD><CODE><A HREF="../suicideChess/Square.NotAValidSquare.html" title="class in suicideChess">Square.NotAValidSquare</A></CODE> - If Squares are not valid.<DT><B>See Also:</B><DD><A HREF="../suicideChess/Square.html" title="class in suicideChess"><CODE>Square</CODE></A>,
|
||||
<A HREF="../suicideChess/Piece.html" title="class in suicideChess"><CODE>Piece</CODE></A></DL>
|
||||
</DL>
|
||||
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
|
||||
<A NAME="method_detail"><!-- --></A>
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||||
<TD COLSPAN=1><FONT SIZE="+2">
|
||||
<B>Method Detail</B></FONT></TD>
|
||||
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
||||
<B>Method Detail</B></FONT></TH>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="fromSquare()"><!-- --></A><H3>
|
||||
fromSquare</H3>
|
||||
<PRE>
|
||||
public suicideChess.Square <B>fromSquare</B>()</PRE>
|
||||
public <A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A> <B>fromSquare</B>()</PRE>
|
||||
<DL>
|
||||
<DD>Returns the <CODE>Square</CODE> to move from in a Move
|
||||
<DD>Returns the <A HREF="../suicideChess/Square.html" title="class in suicideChess"><CODE>Square</CODE></A> to move from in a Move
|
||||
<P>
|
||||
<DD><DL>
|
||||
|
||||
<DT><B>Returns:</B><DD>Square<DT><B>See Also:</B><DD><CODE>Square</CODE></DL>
|
||||
<DT><B>Returns:</B><DD>Square<DT><B>See Also:</B><DD><A HREF="../suicideChess/Square.html" title="class in suicideChess"><CODE>Square</CODE></A></DL>
|
||||
</DD>
|
||||
</DL>
|
||||
<HR>
|
||||
@ -294,13 +386,13 @@ public suicideChess.Square <B>fromSquare</B>()</PRE>
|
||||
<A NAME="toSquare()"><!-- --></A><H3>
|
||||
toSquare</H3>
|
||||
<PRE>
|
||||
public suicideChess.Square <B>toSquare</B>()</PRE>
|
||||
public <A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A> <B>toSquare</B>()</PRE>
|
||||
<DL>
|
||||
<DD>Returns the <CODE>Square</CODE> to move to in a Move
|
||||
<DD>Returns the <A HREF="../suicideChess/Square.html" title="class in suicideChess"><CODE>Square</CODE></A> to move to in a Move
|
||||
<P>
|
||||
<DD><DL>
|
||||
|
||||
<DT><B>Returns:</B><DD>Square<DT><B>See Also:</B><DD><CODE>Square</CODE></DL>
|
||||
<DT><B>Returns:</B><DD>Square<DT><B>See Also:</B><DD><A HREF="../suicideChess/Square.html" title="class in suicideChess"><CODE>Square</CODE></A></DL>
|
||||
</DD>
|
||||
</DL>
|
||||
<HR>
|
||||
@ -322,13 +414,13 @@ public boolean <B>isPromotionMove</B>()</PRE>
|
||||
<A NAME="getPromotionPiece()"><!-- --></A><H3>
|
||||
getPromotionPiece</H3>
|
||||
<PRE>
|
||||
public suicideChess.Piece <B>getPromotionPiece</B>()</PRE>
|
||||
public <A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A> <B>getPromotionPiece</B>()</PRE>
|
||||
<DL>
|
||||
<DD>Returns the promotion <CODE>Piece</CODE> of a Move
|
||||
<DD>Returns the promotion <A HREF="../suicideChess/Piece.html" title="class in suicideChess"><CODE>Piece</CODE></A> of a Move
|
||||
<P>
|
||||
<DD><DL>
|
||||
|
||||
<DT><B>Returns:</B><DD>Piece<DT><B>See Also:</B><DD><CODE>Piece</CODE></DL>
|
||||
<DT><B>Returns:</B><DD>Piece<DT><B>See Also:</B><DD><A HREF="../suicideChess/Piece.html" title="class in suicideChess"><CODE>Piece</CODE></A></DL>
|
||||
</DD>
|
||||
</DL>
|
||||
<HR>
|
||||
@ -336,13 +428,13 @@ public suicideChess.Piece <B>getPromotionPiece</B>()</PRE>
|
||||
<A NAME="getMovingPiece()"><!-- --></A><H3>
|
||||
getMovingPiece</H3>
|
||||
<PRE>
|
||||
public suicideChess.Piece <B>getMovingPiece</B>()</PRE>
|
||||
public <A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A> <B>getMovingPiece</B>()</PRE>
|
||||
<DL>
|
||||
<DD>Returns the moving <CODE>piece</CODE> of a Move.
|
||||
<DD>Returns the moving <A HREF="../suicideChess/Piece.html" title="class in suicideChess"><CODE>Piece</CODE></A> of a Move.
|
||||
<P>
|
||||
<DD><DL>
|
||||
|
||||
<DT><B>Returns:</B><DD>Piece<DT><B>See Also:</B><DD><CODE>Piece</CODE></DL>
|
||||
<DT><B>Returns:</B><DD>Piece<DT><B>See Also:</B><DD><A HREF="../suicideChess/Piece.html" title="class in suicideChess"><CODE>Piece</CODE></A></DL>
|
||||
</DD>
|
||||
</DL>
|
||||
<HR>
|
||||
@ -364,9 +456,9 @@ public boolean <B>isCaptureMove</B>()</PRE>
|
||||
<A NAME="getCapturedPiece()"><!-- --></A><H3>
|
||||
getCapturedPiece</H3>
|
||||
<PRE>
|
||||
public suicideChess.Piece <B>getCapturedPiece</B>()</PRE>
|
||||
public <A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A> <B>getCapturedPiece</B>()</PRE>
|
||||
<DL>
|
||||
<DD>Returns the <CODE>Piece</CODE> to be captured in a Move
|
||||
<DD>Returns the <A HREF="../suicideChess/Piece.html" title="class in suicideChess"><CODE>Piece</CODE></A> to be captured in a Move
|
||||
<P>
|
||||
<DD><DL>
|
||||
|
||||
@ -375,6 +467,45 @@ public suicideChess.Piece <B>getCapturedPiece</B>()</PRE>
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
<A NAME="enablesEnPassant()"><!-- --></A><H3>
|
||||
enablesEnPassant</H3>
|
||||
<PRE>
|
||||
public boolean <B>enablesEnPassant</B>()</PRE>
|
||||
<DL>
|
||||
<DD>Returns a boolean saying is a Move makes 'en passant' move possible.
|
||||
<P>
|
||||
<DD><DL>
|
||||
</DL>
|
||||
</DD>
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
<A NAME="isEnPassant()"><!-- --></A><H3>
|
||||
isEnPassant</H3>
|
||||
<PRE>
|
||||
public boolean <B>isEnPassant</B>()</PRE>
|
||||
<DL>
|
||||
<DD>Returns a boolean saying is a Move is an 'en passant' move.
|
||||
<P>
|
||||
<DD><DL>
|
||||
</DL>
|
||||
</DD>
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
<A NAME="getEnPassantSquare()"><!-- --></A><H3>
|
||||
getEnPassantSquare</H3>
|
||||
<PRE>
|
||||
public <A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A> <B>getEnPassantSquare</B>()</PRE>
|
||||
<DL>
|
||||
<DD>Returns the enPassant Square for a move.
|
||||
<P>
|
||||
<DD><DL>
|
||||
</DL>
|
||||
</DD>
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
<A NAME="toString()"><!-- --></A><H3>
|
||||
toString</H3>
|
||||
<PRE>
|
||||
@ -383,12 +514,29 @@ public java.lang.String <B>toString</B>()</PRE>
|
||||
<DD>Converts a Move into a String.
|
||||
<P>
|
||||
<DD><DL>
|
||||
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
|
||||
</DD>
|
||||
<DD><DL>
|
||||
|
||||
<DT><B>Returns:</B><DD>String</DL>
|
||||
</DD>
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
<A NAME="isSimpleEqual(suicideChess.Move)"><!-- --></A><H3>
|
||||
isSimpleEqual</H3>
|
||||
<PRE>
|
||||
public boolean <B>isSimpleEqual</B>(<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A> that)</PRE>
|
||||
<DL>
|
||||
<DD>Tests the equality of two moves by just looking at the fromSquare and the toSquare
|
||||
<P>
|
||||
<DD><DL>
|
||||
<DT><B>Parameters:</B><DD><CODE>that</CODE> - A move to test
|
||||
<DT><B>Returns:</B><DD>boolean</DL>
|
||||
</DD>
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
<A NAME="display()"><!-- --></A><H3>
|
||||
display</H3>
|
||||
<PRE>
|
||||
@ -409,11 +557,11 @@ public void <B>display</B>()</PRE>
|
||||
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
||||
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
||||
<TR>
|
||||
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
||||
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
||||
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
||||
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
||||
<TR ALIGN="center" VALIGN="top">
|
||||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
||||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../suicideChess/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
||||
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
||||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Move.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
||||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
||||
@ -433,7 +581,7 @@ public void <B>display</B>()</PRE>
|
||||
<A HREF="../suicideChess/Board.NoPieceOnSquare.html" title="class in suicideChess"><B>PREV CLASS</B></A>
|
||||
<A HREF="../suicideChess/Move.NotAValidMoveException.html" title="class in suicideChess"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../index.html" target="_top"><B>FRAMES</B></A>
|
||||
<A HREF="../index.html?suicideChess/Move.html" target="_top"><B>FRAMES</B></A>
|
||||
<A HREF="Move.html" target="_top"><B>NO FRAMES</B></A>
|
||||
<SCRIPT type="text/javascript">
|
||||
<!--
|
||||
@ -446,6 +594,7 @@ public void <B>display</B>()</PRE>
|
||||
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
|
||||
</NOSCRIPT>
|
||||
|
||||
|
||||
</FONT></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
|
Reference in New Issue
Block a user