|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectNetWordClient
public class NetWordClient
Hangman network client. This class is the client side of a client-server network communication. Its purpose is to separate the communication issues from the game control logic. All we do is get a single secret word from the word server.
| Field Summary | |
|---|---|
private java.lang.String |
siteurl
Site that returns a randomword |
| Constructor Summary | |
|---|---|
NetWordClient()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getSecretWord()
Obtain a secret word from a random word server. |
static void |
main(java.lang.String[] args)
a local main for unit testing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String siteurl
| Constructor Detail |
|---|
public NetWordClient()
| Method Detail |
|---|
public java.lang.String getSecretWord()
getSecretWord in interface I_WordSourcepublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||