| | |
| | | case BattleMode.Record: |
| | | operationAgent = new RecordModeOperationAgent(this); |
| | | break; |
| | | case BattleMode.Stop: |
| | | operationAgent = new StopModeOperationAgent(this); |
| | | break; |
| | | default: |
| | | operationAgent = new HandModeOperationAgent(this); |
| | | break; |
| | | } |
| | | |
| | | Debug.LogError("battleMode is " + battleMode.ToString()); |
| | | } |
| | | |
| | | public virtual void AutoSetBattleMode() |
| | | { |
| | | // 除了主线都是战报 主线的内容在StoryBattleField里 |
| | | SetBattleMode(BattleMode.Record); |
| | | } |
| | | |
| | | public virtual void PlayRecord(RecordAction recordAction) |
| | |
| | | recordPlayer.PlayRecord(recordList); |
| | | } |
| | | |
| | | protected virtual void ResumeGame() |
| | | public virtual void ResumeGame() |
| | | { |
| | | battleObjMgr.ResumeGame(); |
| | | recordPlayer.ResumeGame(); |
| | |
| | | battleTweenMgr.ResumeGame(); |
| | | } |
| | | |
| | | protected virtual void PauseGame() |
| | | public virtual void PauseGame() |
| | | { |
| | | // 怎么通知界面暂停了呢? |
| | | |
| | |
| | | }; |
| | | } |
| | | |
| | | public void OnObjDropItem(int positionNum, ItemModel item) |
| | | { |
| | | // 处理掉落物品 |
| | | //无论如何图层应该在人物上面 所以这里应该有个挂点 |
| | | // YYL TODO |
| | | |
| | | |
| | | } |
| | | |
| | | public void OnObjReborn(HB423_tagMCTurnFightObjReborn vNetData) |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | public void OnObjDropExp(BattleObject battleObject) |
| | | { |
| | | // 处理掉落经验 |
| | | // YYL TODO |
| | | battleObject.DropExp(); |
| | | } |
| | | |
| | | public virtual void OnBattleEnd(JsonData turnFightStateData) |
| | | { |
| | |
| | | |
| | | battleEffectMgr.HaveRest(); |
| | | battleTweenMgr.HaveRest(); |
| | | |
| | | SetBattleMode(BattleMode.Stop); |
| | | } |
| | | |
| | | public bool IsBattleEnd() |