Package drawing.other.symbols
Class UnderScore
java.lang.Object
drawing.other.symbols.UnderScore
- All Implemented Interfaces:
Symbol
This draws out underscores for the Hangman game and implements the symbol interface.
- Since:
- 2023
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
UnderScore
public UnderScore()Constructor which assigns 'symbol' to an Enum.
-
-
Method Details
-
draw
public void draw()This draws out an underscore. -
draw
public void draw(int amount) This takes in the an integer 'amount' which is used to draw out that number of underscores. -
getSymbol
Returns the enum.- Returns:
- Symbols
-