Package pacManReloaded.server
Class ServerProtocol
- java.lang.Object
-
- pacManReloaded.server.ServerProtocol
-
public class ServerProtocol extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ServerProtocol()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleMsg(ServerThread thread, IMessage gameMsg)
method which handles the messagesvoid
onInit(ServerThread st)
on init method
-
-
-
Method Detail
-
onInit
public void onInit(ServerThread st)
on init method- Parameters:
st
- the server thread
-
handleMsg
public void handleMsg(ServerThread thread, IMessage gameMsg) throws java.io.IOException
method which handles the messages- Parameters:
thread
- the thread of the servergameMsg
- the message which has to get handled- Throws:
java.io.IOException
- exception for wrong params
-
-