Beispiel #1
0
 public WordManager(AddWordMenu addWordMenu)
 {
     this.addWordMenu = addWordMenu;
     theHangman       = new Hangman(new Vector2(50, 100), new Point(4, 3), new Point(900, 1080), maxErrors);
     newWordButton    = new Button(TextureManager.buttonTex2x1, GetScalePos(1425, 950), "Nytt ord");
     backButton       = new Button(TextureManager.buttonTex2x1, GetScalePos(1675, 950), "Tillbaka");
     categoryMenu     = new CategoryMenu();
 }
Beispiel #2
0
 public void ResetWord()
 {
     isPlaying   = true;
     errors      = 0;
     maxErrors   = 11;
     testedChars = new List <char>();
     theHangman  = new Hangman(new Vector2(50, 100), new Point(4, 3), new Point(900, 1080), maxErrors);
     wordint     = rnd.Next(numberOfWords);
     if (categoryChosen == true)
     {
         touchKeyboard.Reset();
     }
 }
Beispiel #3
0
 public void ResetTwoPlayerWord()
 {
     strings.Clear();
     isPlaying   = true;
     errors      = 0;
     maxErrors   = 11;
     testedChars = new List <char>();
     theHangman  = new Hangman(new Vector2(50, 100), new Point(4, 3), new Point(900, 1080), maxErrors);
     wordint     = 0;
     if (categoryChosen == true)
     {
         touchKeyboard.Reset();
     }
 }