Game-Design / Sprint3_actual / Code Reviews and Reflection / Sprint 3 / JacksonCodeReviewReadability.txt
JacksonCodeReviewReadability.txt
Raw
Code Review Author: Jackson Chapman
Date: 10/25/21
Sprint 3
.cs file being reviewed: Keese.cs
.cs file author: Aidan Pukansky
Time spent: 15 minutes

The Keese.cs file is very structured in a way that it has good readablity. The class implements INPC (also written by Aidan), and does so
well. Each method in Keese.cs is written in a way that it is obvious what all is happening. For example, in the UpdateNPC method, the section
for the Keese determining whhich direction it is traveling next is distinct from the section where the Keese actually does move, which is
separated by a logic statement with the boolean "isMoving." The only possible improvement I could see in this method would be to have an enum
for direction, instead of using 1, 2, 3, and 4 (this could also apply to some other parts of the project). Making an enum in a separate file
that many files know about for direction could be helpful for this.
The SetPosition and getRect methods are very clear on what they accomplish, which is setting Keese's position (used in collisions so it does
not enter a block or the border) and getting the position. They are simple and do exactly their one task.
Good work Aidan on this implementation and interface!