Class UnderScore

java.lang.Object
drawing.other.symbols.UnderScore
All Implemented Interfaces:
Symbol

public class UnderScore extends Object implements Symbol
This draws out underscores for the Hangman game and implements the symbol interface.
Since:
2023
  • Constructor Details

    • UnderScore

      public UnderScore()
      Constructor which assigns 'symbol' to an Enum.
  • Method Details

    • draw

      public void draw()
      This draws out an underscore.
      Specified by:
      draw in interface Symbol
    • draw

      public void draw(int amount)
      This takes in the an integer 'amount' which is used to draw out that number of underscores.
      Specified by:
      draw in interface Symbol
      Parameters:
      amount - amount being drawn
    • getSymbol

      public Symbols getSymbol()
      Returns the enum.
      Returns:
      Symbols