/** 强制单元停止 */ public void stop() { if (!running.isRunning()) return; // 强制同步移动 this.running._pulse(this.getTime(), true); // 停止移动 running._stop(); // 发送消息 SCStageMoveStop.Builder msgStop = SCStageMoveStop.newBuilder(); msgStop.setObjId(id); msgStop.setPosEnd(posNow.toMsg()); StageManager.inst().sendMsgToArea(msgStop, stageObj, posNow); }
/** * 地图单元移动 * * @param timeCurr 当前时间 */ public void pulseMove(long timeCurr) { if (!isInWorld()) return; if (!running.isRunning()) return; // 单元移动了 running._pulse(timeCurr); }