/// 判断是否能够加入该策略 public bool checkAddTactic(BaseTactic tactic) { bool b = false; FightEntity target = tactic.target; if (null != target) { if (this.lastTacticTargetList.IndexOf(target) >= 0) { //上次重视过的目标,这次必顶发现且更加重视 b = true; tactic.cardPriority *= 1.2; tactic.movePriority *= 1.2; } } if (!b && tactic.checkDiscover()) { b = tactic.checkDiscover(); } if (b) { this.addTactic(tactic); } return(b); }
public void addTactic(BaseTactic tactic) { this._tacticList.Add(tactic); }