Rithvik Potluri 10/25/2021 Sprint 3 NPCFactory.cs Jackson Jackson wrote the NPCFactory.cs file to provide implementation to create the different NPC types in the game. This class starts by creating an enum for the different NPC types. This assigns an integer value to each NPC type which makes it easier to access multiple times throughout the code and was used heavily in our XML parser. Instead of typing the name of each npc into the parser, we were able to just provide an integer that mapped to a specific NPC. Then he created a variable instance of type NPCFactory which held the result of calling the NPCFactory and had a getter method to assign its value. Then he created a createNPC method that returned a type of INPC and took the type, the x position, and the y position as coordinates. This method used a switch case to determine which kind of npc needed to be created and then created an instance of that NPC at the x and y coordinates specified in the parameters. When focusing on the code quality, this class was written very well. The code does not do too much and has very few lines. The main method is very efficient and if other NPC types were to be added it would be very easy to do so and little to no refactoring of the code would be required, it would just require another switch case and a line of code creating that type of NPC. One thing I noticed was that the default case in the switch case assigns to an NPC type. This works now, but if in the future we were to add other NPC types, we would want to make sure there was a specific case statement for the Stalfos. This is an easy fix and would just require the code in the method to create it in a case statement instead of the default case. Overall this code was very well written and seems to be very maintainable!