Browse Source

Added combat loop

remotes/origin/fight-engine
fdai7430 2 years ago
parent
commit
0de3c01e11
  1. 12
      src/main/java/org/bitbiome/commands/UseCommand.java

12
src/main/java/org/bitbiome/commands/UseCommand.java

@ -31,6 +31,18 @@ private boolean combat = false;
player.setHp(hp);
}
//TODO get input from player
do {
System.out.println("What do you want to do?");
String input = scanner.nextLine();
switch(input) {
case "use":
use(scanner, engine);
break;
default:
System.out.println("That is not a valid command.");
break;
}
} while(true);
}
}

Loading…
Cancel
Save