|
@ -8,8 +8,11 @@ public class RunAwayCommand implements CommandAPI { |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void performCommand(Scanner scanner, boolean isRunning, String message, TravelEngine travelEngine) { |
|
|
public void performCommand(Scanner scanner, boolean isRunning, String message, TravelEngine travelEngine) { |
|
|
// TODO Auto-generated method stub |
|
|
|
|
|
|
|
|
System.out.println(getRunAwayMessage()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getRunAwayMessage() { |
|
|
|
|
|
return "You can only run away when you're fighting someone."; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |