Homework Solution: A MUD, or Multi-User Dungeon/Dimension/Domain, is a multi-player text environment in which the player types commands a…

    A MUD, or Multi-User Dungeon/Dimension/Domain, is a multi-player text environment in which the player types commands and the MUD responds with text. A MUD consists of players, rooms, items, and MOBs (MOBile non-player characters). Players within the MUD can move about from room to room, collect items that affect them or allow them to do things. MOBs can also move from room to room and players can interact with them. Rooms in a MUD are thought of as locations rather than indoor areas. For example a “room” could be a clearing in the woods with paths leading to the north and west. Rooms have exits that connect them to other rooms, descriptions, and contents that include items, players and MOBs. Design the classes for a MUD. You need to produce both a written description of your design as well as UML diagrams. As you proceed, consider that you want your design to give you flexibility to perform modifications as you refine and modify your project later on during the semester. For example, if you are handling input and output in many different locations this will complicate, or even prohibit, changes to handle the I/O within a GUI later on. You will also want to think about how inheritance can help you in your design. Requirements: 1. Players must have a name and must be in a location. They are able to carry items with them as they travel. They are able to move between rooms through the use of commands. 2. Rooms have a description and a list of possible exits as well as a list of contents (items, MOBs, and players). 3. Items may be located in a room or carried by a player. 4. MOBs are able to move between rooms independently from the actions of players. 5. The commands issued by players include the set of movement commands (north, south, east, west, up, down, etc.) as well as commands to “get” and “drop” items. Finally, the command “exit” will terminate play in the game. Additional commands may be added at your discretion.

    Expert Answer

     
    The UML diagram for the MUD is as follows:

    A MUD, or Multi-User Dungeon/Dimension/Domain, is a multi-player passage environment in which the stateer types instructs and the MUD responds with passage. A MUD consists of stateers, capabilitys, items, and MOBs (MOBile non-player characters). Stateers among the MUD can actuate environing from capability to capability, sum items that desire them or concede them to do things. MOBs can besides actuate from capability to capability and stateers can interact with them. Capabilitys in a MUD are conception of as dregss rather than indoor areas. Restraint development a “room” could be a clearing in the woods with paths accidental to the north and west. Capabilitys feel exits that attach them to other capabilitys, designates, and interruption that apprehend items, stateers and MOBs.

    Delineation the classes restraint a MUD. You scarcity to consequence twain a written designate of your delineation as polite-behaved-behaved as UML diagrams. As you avail, deem that you absence your delineation to bestow you flexibility to discharge modifications as you burnish and diversify your device succeeding on during the semester. Restraint development, if you are handling input and output in multifarious unanalogous dregss this achieve interpenetrate, or uniform interdict, changes to wield the I/O among a GUI succeeding on. You achieve besides absence to reflect environing how hereditament can aid you in your delineation.

    Requirements:

    1. Stateers must feel a designate and must be in a dregs. They are operative to raise items with them as they ramble. They are operative to actuate among capabilitys through the authentication of instructs.

    2. Capabilitys feel a designate and a schedule of practiccogent exits as polite-behaved-behaved as a schedule of interruption (items, MOBs, and stateers).

    3. Items may be located in a capability or carried by a stateer.

    4. MOBs are operative to actuate among capabilitys unconnectedly from the actions of stateers.

    5. The instructs issued by stateers apprehend the fixed of actuatement instructs (north, south, east, west, up, down, expectation.) as polite-behaved-behaved as instructs to “get” and “drop” items. Finally, the instruct “exit” achieve close state in the sport. Additional instructs may be ascititious at your preference.

    Expert Acceptance

     

    The UML diagram restraint the MUD is as follows: