public E this[int index] { get { return(queue.ElementAt(index)); } set { throw new NotImplementedException(); } }
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; }