Rithvik Potluri 10/25/2021 Sprint 3 NPCFactory.cs Jackson Chapman 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. With a focus on readability, this class was written very well. The variable names were chosen very well and it was easy to see what variable mapped to what NPC. The switch case structure in the createNPC method was easy to follow and was easy to understand what the function of the method was and what it was doing. The parameter names were short and still provided good context for the parameters purpose. Overall this class was very easy to read and understand.