예제 #1
0
 public void UseVillainCombination(Game game, Gamer gamer) // corresponds villainButton
 {
     throw new NotImplementedException();
 }
예제 #2
0
        private void DrawEggsDragonsCards(Gamer gamer)
        {
            switch (gamer.GamerID)
            {
            case 0:
            {
                if (game.Gamers[0].GamerDragons.Count > 0)
                {
                    D1.Visibility  = Visibility.Visible;
                    LD1.Visibility = Visibility.Visible;
                    LD1.Content    = game.Gamers[0].GamerDragons.Count;
                }
                else
                {
                    D1.Visibility  = Visibility.Hidden;
                    LD1.Visibility = Visibility.Hidden;
                }
                if (game.Gamers[0].GamerEggs.Count > 0)
                {
                    E1.Visibility  = Visibility.Visible;
                    ED1.Visibility = Visibility.Visible;
                    ED1.Content    = game.Gamers[0].GamerEggs.Count;
                }
                else
                {
                    E1.Visibility  = Visibility.Hidden;
                    ED1.Visibility = Visibility.Hidden;
                }


                break;
            }

            case 1:
            {
                if (game.Gamers[1].GamerDragons.Count > 0)
                {
                    D2.Visibility  = Visibility.Visible;
                    LD2.Visibility = Visibility.Visible;
                    LD2.Content    = game.Gamers[1].GamerDragons.Count;
                }
                else
                {
                    D2.Visibility  = Visibility.Hidden;
                    LD2.Visibility = Visibility.Hidden;
                }

                if (game.Gamers[1].GamerEggs.Count > 0)
                {
                    E2.Visibility  = Visibility.Visible;
                    ED2.Visibility = Visibility.Visible;
                    ED2.Content    = game.Gamers[1].GamerEggs.Count;
                }
                else
                {
                    E2.Visibility  = Visibility.Hidden;
                    ED2.Visibility = Visibility.Hidden;
                }
                break;
            }

            case 2:
            {
                if (game.Gamers[2].GamerDragons.Count > 0)
                {
                    D3.Visibility  = Visibility.Visible;
                    LD3.Visibility = Visibility.Visible;
                    LD3.Content    = game.Gamers[2].GamerDragons.Count;
                }
                else
                {
                    D3.Visibility  = Visibility.Hidden;
                    LD3.Visibility = Visibility.Hidden;
                }

                if (game.Gamers[2].GamerEggs.Count > 0)
                {
                    E3.Visibility  = Visibility.Visible;
                    ED3.Visibility = Visibility.Visible;
                    ED3.Content    = game.Gamers[2].GamerEggs.Count;
                }
                else
                {
                    E3.Visibility  = Visibility.Hidden;
                    ED3.Visibility = Visibility.Hidden;
                }

                break;
            }

            case 3:
            {
                if (game.Gamers[3].GamerDragons.Count > 0)
                {
                    D4.Visibility  = Visibility.Visible;
                    LD4.Visibility = Visibility.Visible;
                    LD4.Content    = game.Gamers[3].GamerDragons.Count;
                }
                else
                {
                    D4.Visibility  = Visibility.Hidden;
                    LD4.Visibility = Visibility.Hidden;
                }

                if (game.Gamers[3].GamerEggs.Count > 0)
                {
                    E4.Visibility  = Visibility.Visible;
                    ED4.Visibility = Visibility.Visible;
                    ED4.Content    = game.Gamers[3].GamerEggs.Count;
                }
                else
                {
                    E4.Visibility  = Visibility.Hidden;
                    ED4.Visibility = Visibility.Hidden;
                }
                break;
            }

            default:
                break;
            }
        }
예제 #3
0
 public void UseFatherFatherCombination(Game game, Gamer gamer) //corresponds ffButton
 {
     Father father = new Father();
     Nest   nest   = new Nest();
 }