public void updateAllMap(int nc, boolean send, RemoteEndpoint.Basic... remotes) {
for (int x = 0; x < data.length; x++) {
for (int y = 0; y < data[0].length; y++) {
if (nc != -1) {
data[x][y] = nc;
}
if (send) {
String msg = "update:" + x + ":" + y + ":" + data[x][y];
for (RemoteEndpoint.Basic remote : remotes) {
try {
remote.sendText(msg);
} catch (IOException ex) {
}
}
}
}
}
}
Room.java 文件源码
java
阅读 41
收藏 0
点赞 0
评论 0
项目:Gobang
作者:
评论列表
文章目录