Package it.polimi.ingsw.Client.View
Class MultipleView
java.lang.Object
it.polimi.ingsw.Client.View.MultipleView
Terminal View effective implementation
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Automatically selects the correct type of terminal printing, based on terminal sizeprivate static void
Utilitary method for complete printingprivate static void
Utilitary method for sequential printing
-
Field Details
-
completePrintBound
private static final int completePrintBound- See Also:
-
-
Constructor Details
-
MultipleView
public MultipleView()
-
-
Method Details
-
automaticPrint
public static void automaticPrint(BoardInterface b, ShelfInterface s, PersonalGoalCardInterface pgc, PrintWriter pw) Automatically selects the correct type of terminal printing, based on terminal size- Parameters:
b
- Board Interfaces
- Shelf Interfacepgc
- Personal Goal Card Interfacepw
- PrintWriter to write on
-
sequentialPrint
private static void sequentialPrint(BoardInterface b, ShelfInterface s, PersonalGoalCardInterface pgc, PrintWriter pw) Utilitary method for sequential printing- Parameters:
b
- Board Interfaces
- Shelf Interfacepgc
- Personal Goal Card Interfacepw
- PrintWriter to write on
-
completePrint
private static void completePrint(BoardInterface b, ShelfInterface s, PersonalGoalCardInterface pgc, PrintWriter pw) Utilitary method for complete printing- Parameters:
b
- Board Interfaces
- Shelf Interfacepgc
- Personal Goal Card Interfacepw
- PrintWriter to write on
-