MCPcopy Create free account
hub / github.com/catabriga/graphwar / handleCommands

Method handleCommands

src/GraphServer/GraphServer.java:1065–1078  ·  view source on GitHub ↗
(String msg, ClientConnection client)

Source from the content-addressed store, hash-verified

1063 }
1064
1065 private void handleCommands(String msg, ClientConnection client) throws UnsupportedEncodingException
1066 {
1067 if(msg.startsWith("-"))
1068 {
1069 if(msg.compareToIgnoreCase("-skip")==0)
1070 {
1071 if(this.gameState == Constants.GAME)
1072 {
1073 client.setSkipLevel(true);
1074 checkSkipLevel();
1075 }
1076 }
1077 }
1078 }
1079
1080 public synchronized void handleMessage(String message, ClientConnection client)
1081 {

Callers 1

handleMessageMethod · 0.95

Calls 2

checkSkipLevelMethod · 0.95
setSkipLevelMethod · 0.80

Tested by

no test coverage detected