Diagrams (UML & Sequence) - UQdeco2800/2022-studio-2 GitHub Wiki

Documentation of Updated UML and Sequence Diagram

The following UML diagram was updated by adding a few methods into the DialogueDisplay Class as we have added a few methods in this sprint.

updated_uml

The following Sequence diagram is on how the player is able to interact with the NPC by using the DialogueDisplay class. It demonstrates on the interaction that happens when the player presses the key 'F' when they are near an NPC. On the keypress of 'F' a dialogue will appear based on the type of NPC the player is interacting with and the player is able to keep communicating with the NPC by pressing 'F' until the end of the dialogue.

sequence drawio