예제 #1
0
파일: Spell.cs 프로젝트: 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);
        }
예제 #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();
        }
예제 #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();
        }