UML Class Diagram Player Movement - UQcsse3200/2023-studio-2 GitHub Wiki

UML Class Diagram for Player Movement

The below UML class diagram is specific for KeyboardPlayerInputComponent class. This class defines the player movement characteristics such as moving UP, RIGHT, LEFT, DOWN, RIGHTUP, RIGHTDOWN, LEFTUP, LEFTDOWN and DODGE. This KeyboardPlayerInputComponent class extends from InputComponent class (as shown in the figure) and InputComponent class extends from Component class (as also shown in the figure). On Game Start, DesktopLauncher asks the PlayerFactory class to create a KeyboardPlayerInputComponent class and this how all the components are connected and work together to make the game run.