Пример #1
0
        public void Update()
        {
            iterations += 1;
            int countAtStart = nodeCount;

            if (start == null)
            {
                start = new RMGRiverNode(this, this.facing, this.x, this.y);
                return;
            }
            else
            {
                start.Update();
            }
            if (countAtStart == nodeCount)
            {
                noChangeCount -= 1;
            }

            if (noChangeCount <= 0)
            {
                finished = true;
            }
        }