public virtual void countDownRound(BattleRoundCountRecord record) { foreach (BattleFighterBuff _buff in values()) { _buff.countDown(record); } }
public override void beforeBattleStart(BattleRoundCountRecord roundRecord) { }
public override void countDownRound(BattleRoundCountRecord roundRecord) { }
public virtual void finishCurRoundCountRecord() { curRoundCountRecord = null; }
public virtual void countDown(BattleRoundCountRecord record) { if (PermanentBuff) { return; } foreach (BuffStackInfo _info in stackingList) { _info.countDown(); } while (stackingList.Count > 0 && stackingList.First.Value.Dying) { stackingList.RemoveFirst(); } refreshShowLeftRound(); }
public override void countDownRound(BattleRoundCountRecord roundRecord) { countDownRound(); recordRoundCount(roundRecord); }
public override void beforeBattleStart(BattleRoundCountRecord roundRecord) { this.leftRound = Owner.getFighterOtherProp(BattleKeyConstants.BATTLE_PROP_MONSTER_DEFAULT_CD); recordRoundCount(roundRecord); }
/// <summary> /// Show record of round counting. /// </summary> /// <param name="roundCountRecord">Round cout record</param> public void showBattleRoundCountRecord(BattleRoundCountRecord roundCountRecord) { Logger.Log("[-----RECORD-----] - Round count record: " + roundCountRecord.RecordList.Count); if (roundCountRecord.RecordList != null && roundCountRecord.RecordList.Count > 0) { for (int i = 0; i < roundCountRecord.RecordList.Count; i++) { var action = roundCountRecord.RecordList[i]; if (action.SideIndex == BattleRecordConstants.TARGET_SIDE_LEFT) { } else { var monster = GetMonsterByAction(action); if (monster != null) { var ec = monster.FaceObject.GetComponent<MonsterControl>(); ResetMonsterStates(ec, action); } } } } recordIndex++; DealWithRecord(); }
protected internal virtual void recordRoundCount(BattleRoundCountRecord roundRecord) { SingleActionRecord _record = roundRecord.OrCreateRecord; recordRound(_record); roundRecord.finishCurRecord(); }
protected internal virtual void initSkill(BattleTeam team, BattleRoundCountRecord record) { foreach (BattleFighter _fighter in team.ActorList) { _fighter.SkillManager.beforeBattleStart(record); } }
public virtual void onRoundFinish(BattleRoundCountRecord roundRecord) { if (Dead) { return; } skillManager.countDownRound(roundRecord); buffManager.onRoundFinish(roundRecord); }
public override void beforeBattleStart(BattleScene battleScene, BattleRoundCountRecord record) { BattleArmy _army = battleScene.CurAttacker; foreach (BattleTeam _team in _army.ActorList) { _team.addProp(BattleKeyConstants.BATTLE_KEY_HERO_TEAM_TARGET, 0); initSkill(_team, record); } }
public virtual void onRoundFinish(BattleRoundCountRecord roundRecord) { countDownRound(roundRecord); }
protected internal virtual void countDownRound(Dictionary<int, BuffTypeHolder> holderMap, BattleRoundCountRecord roundRecord) { foreach (BuffTypeHolder _holder in holderMap.Values) { _holder.countDownRound(roundRecord); } }
public virtual void countDownRound(BattleRoundCountRecord roundRecord) { countDownRound(buffHolderMap, roundRecord); countDownRound(debuffHolderMap, roundRecord); clearDyingBuff(); }
public virtual void beforeBattleStart(BattleRoundCountRecord roundRecord) { }