📄 index-all.html
字号:
<DD>
</DL>
<HR>
<A NAME="_L_"><!-- --></A><H2>
<B>L</B></H2>
<DL>
<DT><A HREF="Location.html" title="class in "><B>Location</B></A> - class <A HREF="Location.html" title="class in ">Location</A>.<DD>Represents the holes on the 10 x 10 board<DT><A HREF="Location.html#Location(int, int)"><B>Location(int, int)</B></A> -
Constructor for class <A HREF="Location.html" title="class in ">Location</A>
<DD>Creates an object with specified row and column coordinates
<DT><A HREF="Location.html#Location()"><B>Location()</B></A> -
Constructor for class <A HREF="Location.html" title="class in ">Location</A>
<DD>Default constructor
<DT><A HREF="Ship.html#length"><B>length</B></A> -
Variable in class <A HREF="Ship.html" title="class in ">Ship</A>
<DD>Number of holes this ship occupies
<DT><A HREF="Ship.html#length()"><B>length()</B></A> -
Method in class <A HREF="Ship.html" title="class in ">Ship</A>
<DD>
<DT><A HREF="Ship.html#locPart(int)"><B>locPart(int)</B></A> -
Method in class <A HREF="Ship.html" title="class in ">Ship</A>
<DD>Get Location of specified body part
</DL>
<HR>
<A NAME="_M_"><!-- --></A><H2>
<B>M</B></H2>
<DL>
<DT><A HREF="GuessBoard.html#markGuess(Location, boolean)"><B>markGuess(Location, boolean)</B></A> -
Method in class <A HREF="GuessBoard.html" title="class in ">GuessBoard</A>
<DD>Marks the result of a guess
<DT><A HREF="BattleshipDisplay.html#mouseClicked(java.awt.event.MouseEvent)"><B>mouseClicked(MouseEvent)</B></A> -
Method in class <A HREF="BattleshipDisplay.html" title="class in ">BattleshipDisplay</A>
<DD>Responds to mouse clicks.
<DT><A HREF="BattleshipDisplay.html#mouseEntered(java.awt.event.MouseEvent)"><B>mouseEntered(MouseEvent)</B></A> -
Method in class <A HREF="BattleshipDisplay.html" title="class in ">BattleshipDisplay</A>
<DD>
<DT><A HREF="BattleshipDisplay.html#mouseExited(java.awt.event.MouseEvent)"><B>mouseExited(MouseEvent)</B></A> -
Method in class <A HREF="BattleshipDisplay.html" title="class in ">BattleshipDisplay</A>
<DD>
<DT><A HREF="BattleshipDisplay.html#mousePressed(java.awt.event.MouseEvent)"><B>mousePressed(MouseEvent)</B></A> -
Method in class <A HREF="BattleshipDisplay.html" title="class in ">BattleshipDisplay</A>
<DD>
<DT><A HREF="BattleshipDisplay.html#mouseReleased(java.awt.event.MouseEvent)"><B>mouseReleased(MouseEvent)</B></A> -
Method in class <A HREF="BattleshipDisplay.html" title="class in ">BattleshipDisplay</A>
<DD>
</DL>
<HR>
<A NAME="_N_"><!-- --></A><H2>
<B>N</B></H2>
<DL>
<DT><A HREF="Ship.html#name"><B>name</B></A> -
Variable in class <A HREF="Ship.html" title="class in ">Ship</A>
<DD>Name of the ship
<DT><A HREF="GuessBoard.html#numGuess"><B>numGuess</B></A> -
Variable in class <A HREF="GuessBoard.html" title="class in ">GuessBoard</A>
<DD>Number of guesses so far
<DT><A HREF="GuessBoard.html#numGuesses()"><B>numGuesses()</B></A> -
Method in class <A HREF="GuessBoard.html" title="class in ">GuessBoard</A>
<DD>
<DT><A HREF="Ship.html#numHit()"><B>numHit()</B></A> -
Method in class <A HREF="Ship.html" title="class in ">Ship</A>
<DD>
<DT><A HREF="Battleship.html#numUserGuess()"><B>numUserGuess()</B></A> -
Method in class <A HREF="Battleship.html" title="class in ">Battleship</A>
<DD>
</DL>
<HR>
<A NAME="_P_"><!-- --></A><H2>
<B>P</B></H2>
<DL>
<DT><A HREF="BattleshipDisplay.html#paint(java.awt.Graphics)"><B>paint(Graphics)</B></A> -
Method in class <A HREF="BattleshipDisplay.html" title="class in ">BattleshipDisplay</A>
<DD>Method to paint on the applet.
</DL>
<HR>
<A NAME="_R_"><!-- --></A><H2>
<B>R</B></H2>
<DL>
<DT><A HREF="GuessBoard.html#result"><B>result</B></A> -
Variable in class <A HREF="GuessBoard.html" title="class in ">GuessBoard</A>
<DD>Results of all guesses so far.
<DT><A HREF="Location.html#row"><B>row</B></A> -
Variable in class <A HREF="Location.html" title="class in ">Location</A>
<DD>The row coordinate
<DT><A HREF="Location.html#row()"><B>row()</B></A> -
Method in class <A HREF="Location.html" title="class in ">Location</A>
<DD>
</DL>
<HR>
<A NAME="_S_"><!-- --></A><H2>
<B>S</B></H2>
<DL>
<DT><A HREF="Ship.html" title="class in "><B>Ship</B></A> - class <A HREF="Ship.html" title="class in ">Ship</A>.<DD>Details of a ship and its status on the board<DT><A HREF="Ship.html#Ship(java.lang.String, int, Location, int)"><B>Ship(String, int, Location, int)</B></A> -
Constructor for class <A HREF="Ship.html" title="class in ">Ship</A>
<DD>Creates a ship, and places it in a specified place.
<DT><A HREF="ShipBoard.html" title="class in "><B>ShipBoard</B></A> - class <A HREF="ShipBoard.html" title="class in ">ShipBoard</A>.<DD>Records all the ships of a player<DT><A HREF="ShipBoard.html#ShipBoard(Ship[], int)"><B>ShipBoard(Ship[], int)</B></A> -
Constructor for class <A HREF="ShipBoard.html" title="class in ">ShipBoard</A>
<DD>Builds a Shipboard containing specified ships
<DT><A HREF="ShipBoard.html#ShipBoard()"><B>ShipBoard()</B></A> -
Constructor for class <A HREF="ShipBoard.html" title="class in ">ShipBoard</A>
<DD>Builds a standard ship board containing five ships in the order : PatrolBoat,Destroyer,Submarine,BattleShip,Carrier.
<DT><A HREF="ShipBoard.html#size"><B>size</B></A> -
Variable in class <A HREF="ShipBoard.html" title="class in ">ShipBoard</A>
<DD>The number of ships on this ship board
<DT><A HREF="BattleshipDisplay.html#stat"><B>stat</B></A> -
Variable in class <A HREF="BattleshipDisplay.html" title="class in ">BattleshipDisplay</A>
<DD>The status to display after the user's guess
</DL>
<HR>
<A NAME="_U_"><!-- --></A><H2>
<B>U</B></H2>
<DL>
<DT><A HREF="Battleship.html#user"><B>user</B></A> -
Variable in class <A HREF="Battleship.html" title="class in ">Battleship</A>
<DD>User's guess board
<DT><A HREF="Battleship.html#userGuess(Location)"><B>userGuess(Location)</B></A> -
Method in class <A HREF="Battleship.html" title="class in ">Battleship</A>
<DD>Carry out the user's guess, by modifying the shipBoard and guessBoard
</DL>
<HR>
<A NAME="_W_"><!-- --></A><H2>
<B>W</B></H2>
<DL>
<DT><A HREF="GuessBoard.html#wasHit(Location)"><B>wasHit(Location)</B></A> -
Method in class <A HREF="GuessBoard.html" title="class in ">GuessBoard</A>
<DD>Tests whether a location was guessed and hit
<DT><A HREF="Battleship.html#win"><B>win</B></A> -
Variable in class <A HREF="Battleship.html" title="class in ">Battleship</A>
<DD>Status of the game : true when user has won
<DT><A HREF="Battleship.html#win()"><B>win()</B></A> -
Method in class <A HREF="Battleship.html" title="class in ">Battleship</A>
<DD>
</DL>
<HR>
<A HREF="#_B_">B</A> <A HREF="#_C_">C</A> <A HREF="#_D_">D</A> <A HREF="#_E_">E</A> <A HREF="#_F_">F</A> <A HREF="#_G_">G</A> <A HREF="#_H_">H</A> <A HREF="#_I_">I</A> <A HREF="#_L_">L</A> <A HREF="#_M_">M</A> <A HREF="#_N_">N</A> <A HREF="#_P_">P</A> <A HREF="#_R_">R</A> <A HREF="#_S_">S</A> <A HREF="#_U_">U</A> <A HREF="#_W_">W</A>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A><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">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</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="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Index</B></FONT> </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">
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="index.html" target="_top"><B>FRAMES</B></A>
<A HREF="index-all.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -