Example #1
0
    // Find a new valid dot
    public void SetNewDot()
    {
        DotController newDot = FindNextDot(this, new List <Waypoint>());

        newDot.IsDropping = true;
        currentDot        = newDot;
        connectionLines.SetDotType(newDot.GetDotType());
        IsEmpty = false;
    }
Example #2
0
    // Square was created. Select all dots of given type
    public void Create(DotManager.DotType dotType)
    {
        for (int i = 0; i < board.BoardArray.Count; i++)
        {
            for (int k = 0; k < board.BoardArray[i].Count; k++)
            {
                BoardSpace    curSpace = board.BoardArray[i][k];
                DotController curDot   = curSpace.GetCurrentDot();
                if (curDot.GetDotType().typeID == dotType.typeID)
                {
                    curDot.Select();

                    // only add to our toScore list once
                    if (!squareCreated)
                    {
                        toScore.Add(curSpace);
                    }
                }
            }
        }
        squareCreated = true;
        Handheld.Vibrate();
    }