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 quotation environment in which the enacter types charges and the MUD responds with quotation. A MUD consists of enacters, compasss, items, and MOBs (MOBile non-player characters). Enacters amid the MUD can propose about from compass to compass, convoke items that influence them or avow them to do things. MOBs can too propose from compass to compass and enacters can interact with them. Compasss in a MUD are artfulness of as colonys rather than indoor areas. Control issue a “room” could be a purification in the woods with paths vital to the north and west. Compasss own exits that with them to other compasss, titles, and interruption that involve items, enacters and MOBs.

    Artfulness the classes control a MUD. You demand to amount twain a written title of your artfulness as polite as UML diagrams. As you returns, ponder that you lack your artfulness to impart you flexibility to achieve modifications as you refine and differ your scheme posterior on during the semester. Control issue, if you are handling input and output in manifold contrariant colonys this allure encircle, or uniform hinder, changes to discuss the I/O amid a GUI posterior on. You allure too lack to gard about how possession can acceleration you in your artfulness.

    Requirements:

    1. Enacters must own a indicate and must be in a colony. They are telling to raise items with them as they tour. They are telling to propose betwixt compasss through the explanation of charges.

    2. Compasss own a title and a schedule of feasible exits as polite as a schedule of interruption (items, MOBs, and enacters).

    3. Items may be located in a compass or carried by a enacter.

    4. MOBs are telling to propose betwixt compasss inconsequently from the actions of enacters.

    5. The charges issued by enacters involve the established of proposement charges (north, south, east, west, up, down, expectation.) as polite as charges to “get” and “drop” items. Finally, the charge “exit” allure end enact in the recreation. Additional charges may be added at your preference.

    Expert Retort

     

    The UML diagram control the MUD is as follows: