Exemplo n.º 1
0
 public HangmanGame(IWordGenerator gen, IGraphicsDrawer graphics, int numTries = 8)
 {
     this.gen      = gen;
     this.graphics = graphics;
     this.NumTries = numTries;
     InitWord();
 }
Exemplo n.º 2
0
        /// <summary>
        /// Adds a GraphicsDrawer to the list.
        /// This will call the Draw method of any class that implements IGraphicsDrawer
        /// </summary>
        /// <param name="drawer"></param>
        public void AddDrawer(IGraphicsDrawer drawer)
        {
            if (drawers.Contains(drawer))
            {
                return;
            }

            drawers.Add(drawer);
        }