-
Notifications
You must be signed in to change notification settings - Fork 1
UML Diagram
PurrplePandaa edited this page Oct 4, 2022
·
13 revisions
The following UML diagram was planned before the code implementation of newly added classes for this sprint. This diagram has been added to the sprint one class diagram. Here are the list of newly added classes:
- WeaponPickUpComponent
- PlayerTouchAttackComponent
- PlayerCombatAnimationController
From the implementation of projectile weapons alongside buff implementations, the existing UML diagram has been altered to reflect these changes. Here are the overview of classes that have either had a big change or classes that have been newly added:
- WeaponAuraManager
- BuffDisplayComponent
- AuraPickUpComponent
- PhysicalWeaponStatsComponents (Used to be MeleeStatsComponents)
- All classes eventually extend to components
- AuraFactory class passes inputs for the stats of the auras into WeaponAuraComponent
- This allows the game to know that such an aura exists
- Similarly, WeaponFactory class passes inputs for weapon stats for the PhysicalWeaponStatsComponents to set and get the weights of each weapon
- This class also inherits more generic methods made within the WeaponStatsComponent class
- AreaOfEffectStatsComponent inherits items from WeaponStatsComponent in the same way that PhysicalWeaponStatsComponent does
- Currently not being used as this class has been set up for future expansion of the game when AOE weapons can be utilised
- TouchAttackComponent extends to PlayerTouchAttackComponent which is the class used when the player is in range of an enemy and subsequently attack an enemy and decrease their health
- ItemPickUpComponents extends to AuraPickUpComponents a class that checks to see if the player has walked over an aura
- WeaponAuraManager interacts with PlayerTouchAttackComponent, PhysicalWeaponStatsComponent, WeaponStatsComponent, AuraPickupComponents and BuffDisplayComponents class to check which aura has been picked up by the player, what weapon they have in hand, to apply the correct stats for each corresponding buff and weapon as well as determine the corresponding aura animation that needs to be played
- PlayerCombatAnimatorController inherits from Components and is a class used to define each individual animation for the weapons within the game
- BuffDisplayComponents is a class that inherits from components but is used to display the status of the corresponding buff the player has picked up on the top of the screen • This also disappears after 10 seconds