client.java
来自「这是整套横扫千军3D版游戏的源码」· Java 代码 · 共 35 行
JAVA
35 行
/*
* Created on 8.3.2006
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
/**
* @author Betalord
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class Client {
public String name;
private int status = 0;
// some fields used with anti-spam system:
public int numClientStatusChanges; // number of received CLIENTSTATUS commands since last checkpoint
public long clientStatusChangeCheckpoint; // time of last "checkpoint" (that is time, when we last reset the counter)
public Client(String name) {
this.name = name;
}
public void setStatus(int status) {
this.status = status;
}
public boolean isModerator() {
return (status & 0x20) >> 5 == 1;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?