Commit | Line | Data |
---|---|---|
21c4e167 H |
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
2 | <!--NewPage--> | |
3 | <HTML> | |
4 | <HEAD> | |
5 | <!-- Generated by javadoc (build 1.6.0_20) on Mon May 17 07:46:02 CEST 2010 --> | |
6 | <TITLE> | |
7 | pong | |
8 | </TITLE> | |
9 | ||
10 | <META NAME="date" CONTENT="2010-05-17"> | |
11 | ||
12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> | |
13 | ||
14 | <SCRIPT type="text/javascript"> | |
15 | function windowTitle() | |
16 | { | |
17 | if (location.href.indexOf('is-external=true') == -1) { | |
18 | parent.document.title="pong"; | |
19 | } | |
20 | } | |
21 | </SCRIPT> | |
22 | <NOSCRIPT> | |
23 | </NOSCRIPT> | |
24 | ||
25 | </HEAD> | |
26 | ||
27 | <BODY BGCOLOR="white" onload="windowTitle();"> | |
28 | <HR> | |
29 | ||
30 | ||
31 | <!-- ========= START OF TOP NAVBAR ======= --> | |
32 | <A NAME="navbar_top"><!-- --></A> | |
33 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A> | |
34 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | |
35 | <TR> | |
36 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | |
37 | <A NAME="navbar_top_firstrow"><!-- --></A> | |
38 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | |
39 | <TR ALIGN="center" VALIGN="top"> | |
40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | |
41 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | |
42 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | |
43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | |
44 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | |
45 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | |
46 | </TR> | |
47 | </TABLE> | |
48 | </TD> | |
49 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | |
50 | </EM> | |
51 | </TD> | |
52 | </TR> | |
53 | ||
54 | <TR> | |
55 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
56 | PREV CLASS | |
57 | NEXT CLASS</FONT></TD> | |
58 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
59 | <A HREF="index.html?pong.html" target="_top"><B>FRAMES</B></A> | |
60 | <A HREF="pong.html" target="_top"><B>NO FRAMES</B></A> | |
61 | <SCRIPT type="text/javascript"> | |
62 | <!-- | |
63 | if(window==top) { | |
64 | document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>'); | |
65 | } | |
66 | //--> | |
67 | </SCRIPT> | |
68 | <NOSCRIPT> | |
69 | <A HREF="allclasses-noframe.html"><B>All Classes</B></A> | |
70 | </NOSCRIPT> | |
71 | ||
72 | ||
73 | </FONT></TD> | |
74 | </TR> | |
75 | <TR> | |
76 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
77 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> | |
78 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
79 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> | |
80 | </TR> | |
81 | </TABLE> | |
82 | <A NAME="skip-navbar_top"></A> | |
83 | <!-- ========= END OF TOP NAVBAR ========= --> | |
84 | ||
85 | <HR> | |
86 | <!-- ======== START OF CLASS DATA ======== --> | |
87 | <H2> | |
88 | Class pong</H2> | |
89 | <PRE> | |
90 | java.lang.Object | |
91 | <IMG SRC="./resources/inherit.gif" ALT="extended by "><B>pong</B> | |
92 | </PRE> | |
93 | <HR> | |
94 | <DL> | |
95 | <DT><PRE>public class <B>pong</B><DT>extends java.lang.Object</DL> | |
96 | </PRE> | |
97 | ||
98 | <P> | |
99 | Implementation of classical "PONG" game modified to pass ball over TCP/IP connection. | |
100 | You need to run two instances (client + server). | |
101 | Game takes one optional commandline argument specifiing remote host running the server (localhost is default). | |
102 | If there's no server running on desired hostname, server is started on local machine on port 1033. | |
103 | Copylefted by: Harvie 2o1o | |
104 | <P> | |
105 | ||
106 | <P> | |
107 | <HR> | |
108 | ||
109 | <P> | |
110 | ||
111 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> | |
112 | ||
113 | <A NAME="constructor_summary"><!-- --></A> | |
114 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
115 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
116 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
117 | <B>Constructor Summary</B></FONT></TH> | |
118 | </TR> | |
119 | <TR BGCOLOR="white" CLASS="TableRowColor"> | |
120 | <TD><CODE><B><A HREF="pong.html#pong()">pong</A></B>()</CODE> | |
121 | ||
122 | <BR> | |
123 | </TD> | |
124 | </TR> | |
125 | </TABLE> | |
126 | | |
127 | <!-- ========== METHOD SUMMARY =========== --> | |
128 | ||
129 | <A NAME="method_summary"><!-- --></A> | |
130 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
131 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
132 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
133 | <B>Method Summary</B></FONT></TH> | |
134 | </TR> | |
135 | <TR BGCOLOR="white" CLASS="TableRowColor"> | |
136 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
137 | <CODE>static void</CODE></FONT></TD> | |
138 | <TD><CODE><B><A HREF="pong.html#main(java.lang.String[])">main</A></B>(java.lang.String[] args)</CODE> | |
139 | ||
140 | <BR> | |
141 | </TD> | |
142 | </TR> | |
143 | </TABLE> | |
144 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> | |
145 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
146 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
147 | <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> | |
148 | </TR> | |
149 | <TR BGCOLOR="white" CLASS="TableRowColor"> | |
150 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> | |
151 | </TR> | |
152 | </TABLE> | |
153 | | |
154 | <P> | |
155 | ||
156 | <!-- ========= CONSTRUCTOR DETAIL ======== --> | |
157 | ||
158 | <A NAME="constructor_detail"><!-- --></A> | |
159 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
160 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
161 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
162 | <B>Constructor Detail</B></FONT></TH> | |
163 | </TR> | |
164 | </TABLE> | |
165 | ||
166 | <A NAME="pong()"><!-- --></A><H3> | |
167 | pong</H3> | |
168 | <PRE> | |
169 | public <B>pong</B>()</PRE> | |
170 | <DL> | |
171 | </DL> | |
172 | ||
173 | <!-- ============ METHOD DETAIL ========== --> | |
174 | ||
175 | <A NAME="method_detail"><!-- --></A> | |
176 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
177 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
178 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
179 | <B>Method Detail</B></FONT></TH> | |
180 | </TR> | |
181 | </TABLE> | |
182 | ||
183 | <A NAME="main(java.lang.String[])"><!-- --></A><H3> | |
184 | main</H3> | |
185 | <PRE> | |
186 | public static void <B>main</B>(java.lang.String[] args) | |
187 | throws java.lang.InterruptedException</PRE> | |
188 | <DL> | |
189 | <DD><DL> | |
190 | ||
191 | <DT><B>Throws:</B> | |
192 | <DD><CODE>java.lang.InterruptedException</CODE></DL> | |
193 | </DD> | |
194 | </DL> | |
195 | <!-- ========= END OF CLASS DATA ========= --> | |
196 | <HR> | |
197 | ||
198 | ||
199 | <!-- ======= START OF BOTTOM NAVBAR ====== --> | |
200 | <A NAME="navbar_bottom"><!-- --></A> | |
201 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> | |
202 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | |
203 | <TR> | |
204 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | |
205 | <A NAME="navbar_bottom_firstrow"><!-- --></A> | |
206 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | |
207 | <TR ALIGN="center" VALIGN="top"> | |
208 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | |
209 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | |
210 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | |
211 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | |
212 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | |
213 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | |
214 | </TR> | |
215 | </TABLE> | |
216 | </TD> | |
217 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | |
218 | </EM> | |
219 | </TD> | |
220 | </TR> | |
221 | ||
222 | <TR> | |
223 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
224 | PREV CLASS | |
225 | NEXT CLASS</FONT></TD> | |
226 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
227 | <A HREF="index.html?pong.html" target="_top"><B>FRAMES</B></A> | |
228 | <A HREF="pong.html" target="_top"><B>NO FRAMES</B></A> | |
229 | <SCRIPT type="text/javascript"> | |
230 | <!-- | |
231 | if(window==top) { | |
232 | document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>'); | |
233 | } | |
234 | //--> | |
235 | </SCRIPT> | |
236 | <NOSCRIPT> | |
237 | <A HREF="allclasses-noframe.html"><B>All Classes</B></A> | |
238 | </NOSCRIPT> | |
239 | ||
240 | ||
241 | </FONT></TD> | |
242 | </TR> | |
243 | <TR> | |
244 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
245 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> | |
246 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
247 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> | |
248 | </TR> | |
249 | </TABLE> | |
250 | <A NAME="skip-navbar_bottom"></A> | |
251 | <!-- ======== END OF BOTTOM NAVBAR ======= --> | |
252 | ||
253 | <HR> | |
254 | ||
255 | </BODY> | |
256 | </HTML> |