Game-Design / Sprint3_actual / Code Reviews and Reflection / Sprint 5 / Rithvik Readability Review Sprint 5.txt
Rithvik Readability 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 readability, it is very easy to follow along and understand what the code is doing. The method names are great and explain exactly what collision is being checked and the parameters do a good job of explaining what is being passed into these methods. All the variables are named aptly and it is very easy to follow along with what the code is doing. One thing that was confusing to understand was why there was an enum in the class since it was never used, but other than that this code was very easy to read, great job!