Exemplo n.º 1
0
Arquivo: Spell.cs Projeto: jpx/blazera
        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);
        }
Exemplo n.º 2
0
        public CellArea(CellArea copy)
        {
            Type = copy.Type;

            MinRange = copy.MinRange;
            MaxRange = copy.MaxRange;

            CenterCellPosition = new Vector2I(copy.CenterCellPosition);

            CellPositions = new List<Vector2I>();

            Build();
        }
Exemplo n.º 3
0
        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();
        }