untitledTextAdventure/src/main/java/Commands.java

20 lines
549 B
Java
Raw Normal View History

2022-08-03 12:30:37 +02:00
import areas.Area;
public class Commands {
public static void go(Area area) {
Main.environment.setArea(area);
area.enterArea();
}
public static void info() {
String infoText = TextColors.PURPLE.colorize("Du bist hier: " +
2022-08-03 14:03:51 +02:00
Main.environment.getCurrentArea().getNameWithArticle()) + "\n" +
2022-08-03 12:30:37 +02:00
"Du kannst folgende Bereiche von hier erreichen: " +
2022-08-03 14:03:51 +02:00
String.join(", ", Main.environment.getCurrentArea().getReachableAreas());
2022-08-03 12:30:37 +02:00
System.out.println(infoText);
}
}