📄 index-all.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.4.2_03) on Thu May 27 16:54:56 EDT 2004 -->
<TITLE>
Index
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="Index";
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A><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">
<A NAME="navbar_top_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_top"></A><!-- ========= END OF TOP NAVBAR ========= -->
<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> <HR>
<A NAME="_B_"><!-- --></A><H2>
<B>B</B></H2>
<DL>
<DT><A HREF="Battleship.html" title="class in "><B>Battleship</B></A> - class <A HREF="Battleship.html" title="class in ">Battleship</A>.<DD>Details of the current game<DT><A HREF="Battleship.html#Battleship()"><B>Battleship()</B></A> -
Constructor for class <A HREF="Battleship.html" title="class in ">Battleship</A>
<DD>Initialize the game.
<DT><A HREF="BattleshipDisplay.html" title="class in "><B>BattleshipDisplay</B></A> - class <A HREF="BattleshipDisplay.html" title="class in ">BattleshipDisplay</A>.<DD>Class for the GUI of Battleship.<DT><A HREF="BattleshipDisplay.html#BattleshipDisplay()"><B>BattleshipDisplay()</B></A> -
Constructor for class <A HREF="BattleshipDisplay.html" title="class in ">BattleshipDisplay</A>
<DD>
<DT><A HREF="BattleshipDisplay.html#bat"><B>bat</B></A> -
Variable in class <A HREF="BattleshipDisplay.html" title="class in ">BattleshipDisplay</A>
<DD>The game that is being displayed
<DT><A HREF="Ship.html#body"><B>body</B></A> -
Variable in class <A HREF="Ship.html" title="class in ">Ship</A>
<DD>Location of the body parts : an array 0..length-1
</DL>
<HR>
<A NAME="_C_"><!-- --></A><H2>
<B>C</B></H2>
<DL>
<DT><A HREF="Location.html#col"><B>col</B></A> -
Variable in class <A HREF="Location.html" title="class in ">Location</A>
<DD>The column coordinate
<DT><A HREF="Location.html#col()"><B>col()</B></A> -
Method in class <A HREF="Location.html" title="class in ">Location</A>
<DD>
<DT><A HREF="Battleship.html#comp"><B>comp</B></A> -
Variable in class <A HREF="Battleship.html" title="class in ">Battleship</A>
<DD>Computer's ship board
<DT><A HREF="Battleship.html#compStat()"><B>compStat()</B></A> -
Method in class <A HREF="Battleship.html" title="class in ">Battleship</A>
<DD>
</DL>
<HR>
<A NAME="_D_"><!-- --></A><H2>
<B>D</B></H2>
<DL>
<DT><A HREF="Ship.html#detail()"><B>detail()</B></A> -
Method in class <A HREF="Ship.html" title="class in ">Ship</A>
<DD>
</DL>
<HR>
<A NAME="_E_"><!-- --></A><H2>
<B>E</B></H2>
<DL>
<DT><A HREF="Location.html#equal(Location)"><B>equal(Location)</B></A> -
Method in class <A HREF="Location.html" title="class in ">Location</A>
<DD>Tests if two objects refer to the same hole
</DL>
<HR>
<A NAME="_F_"><!-- --></A><H2>
<B>F</B></H2>
<DL>
<DT><A HREF="BattleshipDisplay.html#finish"><B>finish</B></A> -
Variable in class <A HREF="BattleshipDisplay.html" title="class in ">BattleshipDisplay</A>
<DD>Variable is set to true when user finishes
<DT><A HREF="ShipBoard.html#fleet"><B>fleet</B></A> -
Variable in class <A HREF="ShipBoard.html" title="class in ">ShipBoard</A>
<DD>All the ships on this ship board
</DL>
<HR>
<A NAME="_G_"><!-- --></A><H2>
<B>G</B></H2>
<DL>
<DT><A HREF="GuessBoard.html" title="class in "><B>GuessBoard</B></A> - class <A HREF="GuessBoard.html" title="class in ">GuessBoard</A>.<DD>Records all the guesses and their results of a player<DT><A HREF="GuessBoard.html#GuessBoard()"><B>GuessBoard()</B></A> -
Constructor for class <A HREF="GuessBoard.html" title="class in ">GuessBoard</A>
<DD>Initializes the arrays to the maximum size (100)
<DT><A HREF="ShipBoard.html#getFleetStat()"><B>getFleetStat()</B></A> -
Method in class <A HREF="ShipBoard.html" title="class in ">ShipBoard</A>
<DD>Get the status of all ships on this Shipboard
<DT><A HREF="GuessBoard.html#guess"><B>guess</B></A> -
Variable in class <A HREF="GuessBoard.html" title="class in ">GuessBoard</A>
<DD>An array holding all locations guessed so far
<DT><A HREF="Ship.html#guess(Location)"><B>guess(Location)</B></A> -
Method in class <A HREF="Ship.html" title="class in ">Ship</A>
<DD>Carries out opponent's guess.
<DT><A HREF="Battleship.html#guessStatus(Location)"><B>guessStatus(Location)</B></A> -
Method in class <A HREF="Battleship.html" title="class in ">Battleship</A>
<DD>Get the results of user's guess.
</DL>
<HR>
<A NAME="_H_"><!-- --></A><H2>
<B>H</B></H2>
<DL>
<DT><A HREF="Ship.html#hit"><B>hit</B></A> -
Variable in class <A HREF="Ship.html" title="class in ">Ship</A>
<DD>Indices of the body parts destroyed
<DT><A HREF="Ship.html#hit(int)"><B>hit(int)</B></A> -
Method in class <A HREF="Ship.html" title="class in ">Ship</A>
<DD>Marks body part i, as hit
<DT><A HREF="Ship.html#hitNumber"><B>hitNumber</B></A> -
Variable in class <A HREF="Ship.html" title="class in ">Ship</A>
<DD>Number of body parts destroyed
<DT><A HREF="ShipBoard.html#hitShip(Location, int)"><B>hitShip(Location, int)</B></A> -
Method in class <A HREF="ShipBoard.html" title="class in ">ShipBoard</A>
<DD>Check if the specified ship is hit in a location
</DL>
<HR>
<A NAME="_I_"><!-- --></A><H2>
<B>I</B></H2>
<DL>
<DT><A HREF="BattleshipDisplay.html#init()"><B>init()</B></A> -
Method in class <A HREF="BattleshipDisplay.html" title="class in ">BattleshipDisplay</A>
<DD>Initialize the applet.
<DT><A HREF="Ship.html#isClash(Ship)"><B>isClash(Ship)</B></A> -
Method in class <A HREF="Ship.html" title="class in ">Ship</A>
<DD>Checks if two ships are in the same hole
<DT><A HREF="ShipBoard.html#isDestroyed()"><B>isDestroyed()</B></A> -
Method in class <A HREF="ShipBoard.html" title="class in ">ShipBoard</A>
<DD>Test if all ships on this Shipboard are sunk
<DT><A HREF="GuessBoard.html#isNew(Location)"><B>isNew(Location)</B></A> -
Method in class <A HREF="GuessBoard.html" title="class in ">GuessBoard</A>
<DD>
<DT><A HREF="Ship.html#isSunk()"><B>isSunk()</B></A> -
Method in class <A HREF="Ship.html" title="class in ">Ship</A>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -