예제 #1
0
 public E this[int index]
 {
     get
     {
         return(queue.ElementAt(index));
     }
     set
     {
         throw new NotImplementedException();
     }
 }
예제 #2
0
        internal void ChangeDirection(CardinalDirection direction)
        {
            if (Length == 0)
            {
                return;
            }
            Tile moveTo = _world.GetNeighbour(Head, direction);

            if (moveTo == _body.ElementAt(_body.Count - 2))
            {
                return;
            }
            _moveDirection = direction;
        }