User Interface Questions Week 10 Think about the steps that will have to happen when the user "logs in" and what objects need to know about other objects. (Think about the series of method calls, similar to those we went over in class.) 1. User logs in. 2. UI reads name and password with public void readStuff() and passes that to world through the server. 3. World checks username and password with private boolean isValid(string username, string password) and returns true if valid. 4. World passes this to user interface. 5. UI declares user is loged in. 6. UI reads input with public void readStuff() and checks if valid and if not throw an exception. 7. If the input is valid then UI calls interact(String actor, String verb) or interact(String actor, String verb, String target) depending on the # of Strings entered. List the basic verbs you would like our system to support. eat, pickup, drop, smash, sleep, drink, shout, talk, leave, goto, examine List synonyms for those verbs. eat = devour, digest, bite, chew, consume, pickup = get, take, grab, steal, swipe, lift, drop = release, letgo, discard, throwaway, smash = bash, destroy, hit, decimate, sleep = rest, passout, hibernate, snooze, gotobed, drink = chug, swallow shout = yell, scream, talk = say, speak, leave = exit, depart, goto = enter, examine = lookat, inspect, a. Finish, as best you can, the user interface for players. (As best I can tell, you should read input, convert it to an action, send that action to the world, wait for a response and print it out. You should also provide a printMessage method.) You need not implement that user validation (yet). b. Plan the user interface for world builders. What methods will you need World to provide to allow you to build or extend the world?