📄 gameface.html
字号:
</DL>
<HR>
<A NAME="clear(Location)"><!-- --></A><H3>
clear</H3>
<PRE>
public void <B>clear</B>(<A HREF="Location.html" title="class in <Unnamed>">Location</A> location)</PRE>
<DL>
<DD>Clearing the specified location on the main playing field
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>location</CODE> - the location to be cleared</DL>
</DD>
</DL>
<HR>
<A NAME="clear(Location, int)"><!-- --></A><H3>
clear</H3>
<PRE>
public void <B>clear</B>(<A HREF="Location.html" title="class in <Unnamed>">Location</A> location,
int id)</PRE>
<DL>
<DD>Coloring the specified location on the playing field of another client specified by the id
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>location</CODE> - the location to be cleared<DD><CODE>id</CODE> - the id of another client</DL>
</DD>
</DL>
<HR>
<A NAME="displayPlayingField(java.lang.String, int)"><!-- --></A><H3>
displayPlayingField</H3>
<PRE>
public void <B>displayPlayingField</B>(java.lang.String s,
int id)</PRE>
<DL>
<DD>Display the playing field of another client
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>s</CODE> - the playing field informtaion encapsulated in a string<DD><CODE>id</CODE> - the id of another client</DL>
</DD>
</DL>
<HR>
<A NAME="setScore(int)"><!-- --></A><H3>
setScore</H3>
<PRE>
public void <B>setScore</B>(int score)</PRE>
<DL>
<DD>Display the score of the local client
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>score</CODE> - the score of the local client</DL>
</DD>
</DL>
<HR>
<A NAME="setScore(int, int)"><!-- --></A><H3>
setScore</H3>
<PRE>
public void <B>setScore</B>(int score,
int id)</PRE>
<DL>
<DD>Display the score of another client
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>score</CODE> - the score of another client<DD><CODE>id</CODE> - the id of another client</DL>
</DD>
</DL>
<HR>
<A NAME="setName(java.lang.String)"><!-- --></A><H3>
setName</H3>
<PRE>
public void <B>setName</B>(java.lang.String name)</PRE>
<DL>
<DD>Display the name of the local client
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>setName</CODE> in class <CODE>java.awt.Component</CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>the</CODE> - name of the local client</DL>
</DD>
</DL>
<HR>
<A NAME="setName(java.lang.String, int)"><!-- --></A><H3>
setName</H3>
<PRE>
public void <B>setName</B>(java.lang.String name,
int id)</PRE>
<DL>
<DD>Display the name of another client
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of another client<DD><CODE>id</CODE> - the id of another client</DL>
</DD>
</DL>
<HR>
<A NAME="gameOver()"><!-- --></A><H3>
gameOver</H3>
<PRE>
public void <B>gameOver</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="endGame()"><!-- --></A><H3>
endGame</H3>
<PRE>
public void <B>endGame</B>()</PRE>
<DL>
<DD>the game is over
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="displayOrder(int)"><!-- --></A><H3>
displayOrder</H3>
<PRE>
public void <B>displayOrder</B>(int order)</PRE>
<DL>
<DD>Display the place of the local client
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>order</CODE> - the place of the local client</DL>
</DD>
</DL>
<HR>
<A NAME="initGame()"><!-- --></A><H3>
initGame</H3>
<PRE>
public void <B>initGame</B>()</PRE>
<DL>
<DD>Initial the game
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="startGame()"><!-- --></A><H3>
startGame</H3>
<PRE>
public void <B>startGame</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="actionPerformed(java.awt.event.ActionEvent)"><!-- --></A><H3>
actionPerformed</H3>
<PRE>
public void <B>actionPerformed</B>(java.awt.event.ActionEvent e)</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>actionPerformed</CODE> in interface <CODE>java.awt.event.ActionListener</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="createBar(ColorSet, ColorSet)"><!-- --></A><H3>
createBar</H3>
<PRE>
public void <B>createBar</B>(<A HREF="ColorSet.html" title="class in <Unnamed>">ColorSet</A> colors,
<A HREF="ColorSet.html" title="class in <Unnamed>">ColorSet</A> next)</PRE>
<DL>
<DD>Create a bar according to a ColorSet object
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>colors</CODE> - the colored bar to be created<DD><CODE>next</CODE> - the next bar to be created</DL>
</DD>
</DL>
<HR>
<A NAME="setOrder(int, int)"><!-- --></A><H3>
setOrder</H3>
<PRE>
public void <B>setOrder</B>(int order,
int id)</PRE>
<DL>
<DD>Set the place of another client
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>order</CODE> - the place of another client<DD><CODE>id</CODE> - the id of another client</DL>
</DD>
</DL>
<HR>
<A NAME="main(java.lang.String[])"><!-- --></A><H3>
main</H3>
<PRE>
public static void <B>main</B>(java.lang.String[] args)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= 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=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="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-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="FadeLayer.html" title="class in <Unnamed>"><B>PREV CLASS</B></A>
<A HREF="Information.html" title="class in <Unnamed>"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="index.html?GameFace.html" target="_top"><B>FRAMES</B></A>
<A HREF="GameFace.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>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: <A HREF="#nested_classes_inherited_from_class_javax.swing.JFrame">NESTED</A> | <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>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -