diff --git a/src/main/java/cactusServer/entities/Player.java b/src/main/java/cactusServer/entities/Player.java index 8db7788..4120783 100644 --- a/src/main/java/cactusServer/entities/Player.java +++ b/src/main/java/cactusServer/entities/Player.java @@ -17,8 +17,11 @@ private Quaternion3D angle; private CameraState cameraState; private EmoteState emoteState; + private long lastOperateTime = System.nanoTime(); @JSONHint(ignore = true) public static final int UNIQUE_ID_LENGTH = 12; + @JSONHint(ignore = true) + public static final long STOP_TIME_LIMIT = (long)(30 * Math.pow(10, 9)); private Player() { // JSONDecode���̌Ăяo���p @@ -80,6 +83,11 @@ public EmoteState getEmoteState() { return emoteState; } + + @JSONHint(ignore = true) + public long getLastOperateTime() { + return lastOperateTime; + } public void setInstanceID(String instanceID) { this.instanceID = instanceID; @@ -112,6 +120,11 @@ public void setAnimationClassToStart(EmoteState.EmoteType animationClassToStart) { setEmoteState(new EmoteState(animationClassToStart)); } + + @JSONHint(ignore = true) + public void setLastOperateTime(long lastOperateTime) { + this.lastOperateTime = lastOperateTime; + } public Player update(String characterID, Position3D position, Quaternion3D angle, CameraState cameraState, EmoteState.EmoteType animationClassToStart) {