📄 square.html
字号:
public boolean <B>isblank</B></PRE>
<DL>
<DD>isblank indicates whether a square that has been clicked on is blank or not
<P>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="Square(int, int)"><!-- --></A><H3>
Square</H3>
<PRE>
public <B>Square</B>(int x, int y)</PRE>
<DL>
<DD>Square creats a square for display on the game. at location x y. it is called be the game class. also adds functons to the square
<P>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - the row number where this square will be displayed<DD><CODE>y</CODE> - the column number where this square will be displayed</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="mouseReleased(java.awt.event.MouseEvent)"><!-- --></A><H3>
mouseReleased</H3>
<PRE>
public void <B>mouseReleased</B>(java.awt.event.MouseEvent e)</PRE>
<DL>
<DD>mousedReleased adds the funtions to the square, increments the numclicked, starts the timer, changes the state of the smile and of the game,places and removes flags, explodes mines(makes then red), updates the flags left display and uncovers the square.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>mouseReleased</CODE> in interface <CODE>java.awt.event.MouseListener</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="mousePressed(java.awt.event.MouseEvent)"><!-- --></A><H3>
mousePressed</H3>
<PRE>
public void <B>mousePressed</B>(java.awt.event.MouseEvent e)</PRE>
<DL>
<DD>mousedPresed changes the state of the simle when a button is clicked
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>mousePressed</CODE> in interface <CODE>java.awt.event.MouseListener</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="mouseClicked(java.awt.event.MouseEvent)"><!-- --></A><H3>
mouseClicked</H3>
<PRE>
public void <B>mouseClicked</B>(java.awt.event.MouseEvent e)</PRE>
<DL>
<DD>not used in this program
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>mouseClicked</CODE> in interface <CODE>java.awt.event.MouseListener</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="mouseEntered(java.awt.event.MouseEvent)"><!-- --></A><H3>
mouseEntered</H3>
<PRE>
public void <B>mouseEntered</B>(java.awt.event.MouseEvent e)</PRE>
<DL>
<DD>not used in this program
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>mouseEntered</CODE> in interface <CODE>java.awt.event.MouseListener</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="mouseExited(java.awt.event.MouseEvent)"><!-- --></A><H3>
mouseExited</H3>
<PRE>
public void <B>mouseExited</B>(java.awt.event.MouseEvent e)</PRE>
<DL>
<DD>not used in this program
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>mouseExited</CODE> in interface <CODE>java.awt.event.MouseListener</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="iteration1(int, int, int, int)"><!-- --></A><H3>
iteration1</H3>
<PRE>
public static void <B>iteration1</B>(int x, int y, int row, int column)</PRE>
<DL>
<DD>iteration1 calls remove and iterates with(x+1,y,row,column)
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - the row number of the square clicked on<DD><CODE>y</CODE> - the column number of the square clicked on<DD><CODE>column</CODE> - the number of columns asked for be the minesweeper class<DD><CODE>row</CODE> - the number of rows asked for be the minesweeper class</DL>
</DD>
</DL>
<HR>
<A NAME="iteration2(int, int, int, int)"><!-- --></A><H3>
iteration2</H3>
<PRE>
public static void <B>iteration2</B>(int x, int y, int row, int column)</PRE>
<DL>
<DD>iteration2 calls remove and iterates with(x-1,y,row,column)
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - the row number of the square clicked on<DD><CODE>y</CODE> - the column number of the square clicked on<DD><CODE>column</CODE> - the number of columns asked for be the minesweeper class<DD><CODE>row</CODE> - the number of rows asked for be the minesweeper class</DL>
</DD>
</DL>
<HR>
<A NAME="iteration3(int, int, int, int)"><!-- --></A><H3>
iteration3</H3>
<PRE>
public static void <B>iteration3</B>(int x, int y, int row, int column)</PRE>
<DL>
<DD>iteration3 calls remove and iterates with(x,y+1,row,column)
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - the row number of the square clicked on<DD><CODE>y</CODE> - the column number of the square clicked on<DD><CODE>column</CODE> - the number of columns asked for be the minesweeper class<DD><CODE>row</CODE> - the number of rows asked for be the minesweeper class</DL>
</DD>
</DL>
<HR>
<A NAME="iteration4(int, int, int, int)"><!-- --></A><H3>
iteration4</H3>
<PRE>
public static void <B>iteration4</B>(int x, int y, int row, int column)</PRE>
<DL>
<DD>iteration4 calls remove and iterates with(x+1,y+1,row,column)
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - the row number of the square clicked on<DD><CODE>y</CODE> - the column number of the square clicked on<DD><CODE>column</CODE> - the number of columns asked for be the minesweeper class<DD><CODE>row</CODE> - the number of rows asked for be the minesweeper class</DL>
</DD>
</DL>
<HR>
<A NAME="iteration5(int, int, int, int)"><!-- --></A><H3>
iteration5</H3>
<PRE>
public static void <B>iteration5</B>(int x, int y, int row, int column)</PRE>
<DL>
<DD>iteration5 calls remove and iterates with(x,y-1,row,column)
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - the row number of the square clicked on<DD><CODE>y</CODE> - the column number of the square clicked on<DD><CODE>column</CODE> - the number of columns asked for be the minesweeper class<DD><CODE>row</CODE> - the number of rows asked for be the minesweeper class</DL>
</DD>
</DL>
<HR>
<A NAME="iteration6(int, int, int, int)"><!-- --></A><H3>
iteration6</H3>
<PRE>
public static void <B>iteration6</B>(int x, int y, int row, int column)</PRE>
<DL>
<DD>iteration6 calls remove and iterates with(x-1,y-1,row,column)
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - the row number of the square clicked on<DD><CODE>y</CODE> - the column number of the square clicked on<DD><CODE>column</CODE> - the number of columns asked for be the minesweeper class<DD><CODE>row</CODE> - the number of rows asked for be the minesweeper class</DL>
</DD>
</DL>
<HR>
<A NAME="iteration7(int, int, int, int)"><!-- --></A><H3>
iteration7</H3>
<PRE>
public static void <B>iteration7</B>(int x, int y, int row, int column)</PRE>
<DL>
<DD>iteration7 calls remove and iterates with(x+1,y-1,row,column)
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - the row number of the square clicked on<DD><CODE>y</CODE> - the column number of the square clicked on<DD><CODE>column</CODE> - the number of columns asked for be the minesweeper class<DD><CODE>row</CODE> - the number of rows asked for be the minesweeper class</DL>
</DD>
</DL>
<HR>
<A NAME="iteration8(int, int, int, int)"><!-- --></A><H3>
iteration8</H3>
<PRE>
public static void <B>iteration8</B>(int x, int y, int row, int column)</PRE>
<DL>
<DD>iteration8 calls remove and iterates with(x-1,y+1,row,column)
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - the row number of the square clicked on<DD><CODE>y</CODE> - the column number of the square clicked on<DD><CODE>column</CODE> - the number of columns asked for be the minesweeper class<DD><CODE>row</CODE> - the number of rows asked for be the minesweeper class</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT> </TD>
</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="remove.html"><B>PREV CLASS</B></A>
<A HREF="timer.html"><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="Square.html" TARGET="_top"><B>NO FRAMES</B></A>
<SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -