Game-Design / Sprint3 / Jackson Code Review Maintainability Sprint 2.txt
Jackson Code Review Maintainability Sprint 2.txt
Raw
Code Review Author: Jackson Chapman
Date: 10/3/21
Sprint 2
.cs file being reviewed: Link.cs
.cs file author: Zach Jones
Time spent: 15 minutes

The Link.cs file is organized in a very maintainable way. For one, it implements an ILink interface, so we could easily create a new type of
Link that may behave in different ways, or simply as a way to add a second player that also implements ILink.
Second, this file uses many different methods which serve to change the state of the Link object in relation to the state machine. Each
method updates the ILinkState field of the class to different values, and only that functionality. The actions of this class are very
straightforward, and updating the Link player with a new ability, like "Cast Spell" or some other new action, would be as easy as creating a
new method to update the ILinkState to a new state, like "CastSpell." The hard work then is in making the actual states and sprites, but the
Link class serving as a frame for these states makes it very maintainable and able to add new functionality.