Game-Design / Sprint3_actual / Code Reviews and Reflection / Sprint 5 / Rithvik Maintainability Review Sprint 5.txt
Rithvik Maintainability Review Sprint 5.txt
Raw
Rithvik Potluri
12/6/2021
Sprint 5
StoneStatueLeft.cs
Bryce Hostelier

Bryce wrote the StoneStatueLeft.cs file to provide implementation that handles the stone statue NPC's that shoot fire balls at Link. These statues are specifically the ones that are facing left. This class starts with an enum for each of the 4 directions. Then there is a constructor that sets values to all the variables that were declared. Then there is a getRect method that returns the position rectangle. There is a setPosition method that sets the x and y coordinates of the position rectangle. The drawNPC method draws the stoneStatue onto the screen. The updateNPC is constantly checking to see what should happen next and calculates intervals in which the statues should attack. The Spawn method sets spawning to be true which is what spawns the stone statue in. The takeDamage method does not have anything since the stone statue can't be damaged. The collide method returns a floating value of 0. The isRemoved method returns whether or not the NPC is removed. The isDead method returns false since the NPC can not die. Finally, the attack method has the implementation for the NPC to attack link with fireballs.When focusing on the code quality of this class it is very efficient. There is no unnecessary code and the methods do a great job of using object orientated programming principles and hand off jobs to other methods instead of trying to do too much. One thing that could be fixed is that the enum could be removed since it is not found anywhere in the code and appears to not be doing anything. Otherwise this code is very paintable, great job!