| | |
| | | return agentWaveLineArray; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 设置某条兵线的所有小兵的移动状态 |
| | | /// </summary> |
| | | /// <param name="waveLineId">兵线id 1~5, 如果是-1则设置所有兵线的状态</param> |
| | | /// <param name="canMove">是否可以移动</param> |
| | | /// <param name="isOppo">是否是敌方</param> |
| | | public void SetWaveLineCanMove(int waveLineId, bool canMove, bool isOppo) |
| | | { |
| | | WaveLineAgentInsMgr[] waveLineAgents = isOppo ? getOppoWaveLineList() : GetWaveLineList(); |
| | | |
| | | for (int i = 0; i < waveLineAgents.Length; ++i) |
| | | { |
| | | if (i == waveLineId - 1 || waveLineId == -1) |
| | | { |
| | | List<Agent> list = waveLineAgents[i].listAgent; |
| | | |
| | | for (int j = 0; j < list.Count; ++j) |
| | | { |
| | | list[j].CanMove = canMove; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | public List<Agent> agentList |
| | | { |
| | | get { return this.agentInsList; } |