|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
tetrisClient.ClientApplTetris
public class ClientApplTetris
Klassie die alles afhandelt zodat de cliënt kan spelen met andere spelers over het internet.
| Nested Class Summary | |
|---|---|
class |
ClientApplTetris.AcceptMessageHandler
Klasse die verschillende opdrachten uitvoert. |
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
ClientApplTetris()
Creates a new instance of ClientApplTetris |
|
ClientApplTetris(FrmClient frm)
Creates a new instance of ClientApplTetris |
|
ClientApplTetris(FrmSpel frm)
Creates a new instance of ClientApplTetris |
|
| Method Summary | |
|---|---|
boolean |
getConnection()
Methode die de connectie weergeeft. |
FrmClient |
getFrmClient()
Methode om de frmClient te weergeven. |
FrmSpel |
getFrmSpel()
Methode om FrmSpel terug te geven. |
void |
makeConnection()
Methode die connectie maakt met de server |
void |
makeConnection(java.lang.String sIP,
int poort)
Methode die connectie maakt met de server. |
void |
sendObject(java.lang.Object o)
Methode om objecten te versturen. |
void |
sendObject(java.lang.String s,
java.lang.Object o)
Methode om strings en objecten te versturen. |
void |
sendObject(java.lang.String s,
java.lang.Object o,
java.lang.String s2)
Methode om verschillende strings en object door te sturen. |
void |
setFrmClient(FrmClient frmClient)
Methode die de frmClient zet. |
void |
setFrmSpel(FrmSpel frmSpel)
Methode om FrmSpel te zetten. |
void |
stopConnection()
Methode om de connectie af te sluiten. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClientApplTetris(FrmClient frm)
frm - frmpublic ClientApplTetris(FrmSpel frm)
frm - frmpublic ClientApplTetris()
| Method Detail |
|---|
public void makeConnection(java.lang.String sIP,
int poort)
throws java.net.UnknownHostException,
java.io.IOException
sIP - IP-adres opgevenpoort - Portnumber meegeven
java.net.UnknownHostException - error afhandeling
java.io.IOException - error afhandelingpublic void makeConnection()
public void sendObject(java.lang.Object o)
o - object
public void sendObject(java.lang.String s,
java.lang.Object o)
s - Stringo - Object
public void sendObject(java.lang.String s,
java.lang.Object o,
java.lang.String s2)
s - Stringo - Objects2 - String 2public void stopConnection()
public boolean getConnection()
public FrmClient getFrmClient()
public void setFrmClient(FrmClient frmClient)
frmClient - zettenpublic FrmSpel getFrmSpel()
public void setFrmSpel(FrmSpel frmSpel)
frmSpel - zetten.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||