Exemplo n.º 1
0
        public void AssignNewColorToMatchedOrbs()
        {
            List <PuzzleOrb> matched = GetAllMatchedOrbs();

            for (int i = 0; i < matched.Count; i++)
            {
                matched[i].orbColor = OrbColorHelper.GetRandomOrbColor();
            }
        }
Exemplo n.º 2
0
 public void FillBoardWithNewOrbs()
 {
     for (int y = 0; y < Board.Rows; y++)
     {
         for (int x = 0; x < Board.Columns; x++)
         {
             PuzzleOrb newOrb = new PuzzleOrb(x, y, OrbColorHelper.GetRandomOrbColor());
             Board[y, x] = newOrb;
         }
     }
 }
Exemplo n.º 3
0
        public string GetBoardString()
        {
            string boardString = "\n";

            for (int y = 0; y < Board.Rows; y++)
            {
                for (int x = 0; x < Board.Columns; x++)
                {
                    boardString = "[" + OrbColorHelper.GetColoredOrbLetter(Board[y, x].orbColor) + "]" + boardString;
                }
                boardString = "\n" + boardString;
            }
            return(boardString);
        }
Exemplo n.º 4
0
        public string GetCombosString()
        {
            string matchString = "";

            matchString += "Combo count: " + Combos.Count + "\n";

            for (int i = 0; i < Combos.Count; i++)
            {
                matchString += "[";
                matchString += "Combo#" + i;
                matchString += " OrbCount: " + Combos[i].OrbCount;
                matchString += " Orb Color: " + OrbColorHelper.GetColoredOrbName(Combos[i].OrbType);
                matchString += " Match Type: " + Combos[i].MatchType.ToString();
                matchString += "]\n";
            }
            return(matchString);
        }