public void InitEffect( string animationType, string soundName, CellAreaType rangeAreaType, int rangeAreaMinRange, int rangeAreaMaxRange, CellAreaType effectAreaType, int effectAreaMinRange, int effectAreaMaxRange) { Effect.Init(animationType, soundName); RangeArea = new CellArea(rangeAreaType, rangeAreaMinRange, rangeAreaMaxRange); EffectArea = new CellArea(effectAreaType, effectAreaMinRange, effectAreaMaxRange); }
public CellArea(CellArea copy) { Type = copy.Type; MinRange = copy.MinRange; MaxRange = copy.MaxRange; CenterCellPosition = new Vector2I(copy.CenterCellPosition); CellPositions = new List<Vector2I>(); Build(); }
public CellArea(CellAreaType type = DEFAULT_TYPE, int minRange = DEFAULT_MIN_RANGE, int maxRange = DEFAULT_MAX_RANGE) { Type = type; MinRange = minRange; MaxRange = maxRange; CenterCellPosition = new Vector2I(); CellPositions = new List<Vector2I>(); Build(); }