Exemplo n.º 1
0
        public override void performLowest(int column)
        {
            GameObjectTree temp = activeColumns;

            while (temp != null && temp.getStatus() == Status.Inactive)
            {
                temp = temp.nextNode;
            }
            GameObjectTree check = temp;

            while (temp != null)
            {
                if (temp.getStatus() == Status.Active)
                {
                    if (temp.getPosY() < check.getPosY())
                    {
                        check = temp;
                    }
                }
                temp = temp.nextNode;
            }
            if (check != null)
            {
                check.performLowest(column);
            }
        }