Class TextScene.Builder
java.lang.Object
com.calebleavell.textinterface.scenes.GenericScene.Builder<TextScene.Builder>
com.calebleavell.textinterface.scenes.TextScene.Builder
- Enclosing class:
TextScene
Builder class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Initializes a new object of the class that the implementation is contained inendWithNewLine
(boolean endWithNewLine) text
(Inputtable<?> input) Allows easy translation from input to output Displays the direct input from another scene
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
text
- Parameters:
text
- The text to display- Returns:
- self
-
text
Allows easy translation from input to output Displays the direct input from another scene- Parameters:
input
- Something that can return an input (with a good toString() method)- Returns:
- the modified Builder
-
endWithNewLine
- Parameters:
endWithNewLine
- Whether or not to end with a new line- Returns:
- self
-
build
Description copied from class:GenericScene.Builder
Initializes a new object of the class that the implementation is contained in- Specified by:
build
in classGenericScene.Builder<TextScene.Builder>
- Returns:
- The new TextScene
-