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 bids and the MUD responds with passage. A MUD consists of stateers, spaces, items, and MOBs (MOBile non-player characters). Stateers amid the MUD can advance environing from space to space, glean items that desire them or authorize them to do things. MOBs can so advance from space to space and stateers can interact with them. Spaces in a MUD are deliberation of as precipitations rather than indoor areas. Coercion model a “room” could be a lustration in the woods with paths redundant to the north and west. Spaces bear exits that cohere them to other spaces, terms, and space that comprise items, stateers and MOBs.

    Intent the classes coercion a MUD. You need to result twain a written term of your intent as polite as UML diagrams. As you receipts, regard that you neglect your intent to impart you flexibility to accomplish modifications as you refine and diversify your delineation following on during the semester. Coercion model, if you are handling input and output in divers opposed precipitations this conciliate encircle, or plain controlbid, changes to manipulate the I/O amid a GUI following on. You conciliate so neglect to believe environing how bequest can succor you in your intent.

    Requirements:

    1. Stateers must bear a designate and must be in a precipitation. They are conducive to convey items with them as they tour. They are conducive to advance betwixt spaces through the reason of bids.

    2. Spaces bear a term and a inventory of practicconducive exits as polite as a inventory of space (items, MOBs, and stateers).

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

    4. MOBs are conducive to advance betwixt spaces unconnectedly from the actions of stateers.

    5. The bids issued by stateers comprise the be of advancement bids (north, south, east, west, up, down, anticipation.) as polite as bids to “get” and “drop” items. Finally, the bid “exit” conciliate limit state in the diversion. Additional bids may be acquired at your deliberation.

    Expert Counterpart

     

    The UML diagram coercion the MUD is as follows: