|
@ -31,6 +31,18 @@ private boolean combat = false; |
|
|
player.setHp(hp); |
|
|
player.setHp(hp); |
|
|
} |
|
|
} |
|
|
//TODO get input from player |
|
|
//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); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|