warofants / wwa

World War of Ants
https://worldwarofants.com
GNU General Public License v3.0
146 stars 80 forks source link

Create a common design template for console output #118

Open anthonyLuttrell opened 5 years ago

anthonyLuttrell commented 5 years ago

Since most or all methods will involve the same console output style, we will need a common design template for this to maintain code consistency and so that each person/team doesn't have to re-create this from scratch. This template should meet the following criteria:

anthonyLuttrell commented 5 years ago

Questions:

  1. What is the best way to store/distribute this template once completed? Create a new branch from the main repo, or just add it to the Wiki?

  2. From a design standpoint, what is the better option for after the user presses a key to skip the typing effect: a) It instantly completes the line and instantly begins the typing effect on the next line b) It instantly completes the line, but waits for another keypress before beginning the typing effect on the next line

blackk100 commented 5 years ago

Answering 2, it should be consistent with how the text would be displayed if the typing effect isn't skipped. If the display of the next line is started without waiting for some sort of input from the user, it should preferably remain the same if the user skips the typing effect.

EhWhoAmI commented 5 years ago

One way we could do it is by writing our custom printstream classes. System.setOut may work.

nylanderdev commented 5 years ago

Are VT100 codes acceptable or do we need to support CMD?