Ejemplo n.º 1
0
        private void InitializeAttributes()
        {
            MovingStrategy movingStrategy = ((MovingStrategy)move.IMovingStrategy);

            _startingPoint = movingStrategy.StartingPoint.Position;
            direction      = ((R1NCDirection)movingStrategy.LinkedList.GetLast()).Direction;
        }
        public override void Fill()
        {
            if (linkedList.Size > 0)
            {
                linkedList.Clear();
            }
            MovingStrategy movingStrategy = ((MovingStrategy)move.IMovingStrategy);

            for (int i = 0; i < movingStrategy.LinkedList.Size; i++)
            {
                linkedList.Add((R1CDirection)movingStrategy.LinkedList.GetAt(i));
            }
        }