|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.network.ConnectionManager
public final class ConnectionManager
Maintains/close connection of connected players.
Field Summary | |
---|---|
static Client |
client
this is the client (mono client for this version) |
static Server |
server
this is the server |
Method Summary | |
---|---|
static void |
closeConnexions()
Close all opened connexions |
static void |
enableConnectingTools(boolean really)
Enable/Disable connection ability |
static NetworkActor |
getNetworkActor()
return the current net.sf.magicproject.network actor |
static boolean |
isConnected()
Indicates if we are connected to a game. |
static void |
notifyDisconnection()
Notify the disconnection with a warning message. this message is displayed once per disconnection |
static void |
sendToOpponent(int... msg)
send an event to opponent. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static Server server
public static Client client
Method Detail |
---|
public static void notifyDisconnection()
public static void closeConnexions()
public static void enableConnectingTools(boolean really)
really
- if true, the connection ability is enabled. Disable it otherwise.public static void sendToOpponent(int... msg)
msg
- is the message sentpublic static NetworkActor getNetworkActor()
public static boolean isConnected()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |