43 lines
1012 B
C#
43 lines
1012 B
C#
using System.Collections.Generic;
|
|
namespace Gameplay.LegionBattle.View
|
|
{
|
|
public class FightLineArea2
|
|
{
|
|
|
|
public List<FightLineCell2> cellList = new List<FightLineCell2>(3000);
|
|
|
|
public bool hasClaimed = false;
|
|
|
|
public void AddCell(FightLineCell2 cell)
|
|
{
|
|
cellList.Add(cell);
|
|
if (cell.claimUnit != null)
|
|
{
|
|
hasClaimed = true;
|
|
}
|
|
}
|
|
|
|
public void ReverseCells()
|
|
{
|
|
for (int i = 0; i < cellList.Count; i++)
|
|
{
|
|
var cell = cellList[i];
|
|
if (cell.standValue == -1)
|
|
{
|
|
cell.standValue = 1;
|
|
}
|
|
else if (cell.standValue == 1)
|
|
{
|
|
cell.standValue = -1;
|
|
}
|
|
}
|
|
}
|
|
|
|
public void AddArea(FightLineArea2 area)
|
|
{
|
|
cellList.AddRange(area.cellList);
|
|
}
|
|
|
|
}
|
|
}
|