Package it.polimi.ingsw.Client.View
Class OutputAbstraction
java.lang.Object
it.polimi.ingsw.Client.View.OutputAbstraction
Terminal/GUI abstractions, to show informative or error messages
-
Field Summary
-
Constructor Summary
ConstructorDescriptionOutputAbstraction
(boolean useGUI, PrintWriter pw) Abstracts output between terminal and GUI -
Method Summary
-
Field Details
-
useGUI
private final boolean useGUI -
pw
-
-
Constructor Details
-
OutputAbstraction
Abstracts output between terminal and GUI- Parameters:
useGUI
- true if GUI is being usedpw
- PrintWriter to write on
-
-
Method Details
-
showInfo
Outputs an Informative message- Parameters:
i
- informative message
-
showError
Outputs an Error message- Parameters:
e
- error message
-
showErrorConfirm
Outputs an Error and waits (on GUI) for User confirmation- Parameters:
e
- error message
-