A returned player reference can give the controller another path to an existing object. Keep the call receiver and the returned object distinct.
Inside a Controller method, game1.CurrentPlayer already refers to jordan. GetCurrentPlayer() returns that field without creating or changing a player.
If the underlying C# feature is unfamiliar, use the lesson below while reading this example.
Player selected = game1.GetCurrentPlayer();The controller asks game1 for its current player
game1 returns its existing reference to jordan
The controller stores that reference in selected
Jordan remains the same existing Player instanceUse these words to follow one execution before drawing it. Keep the same order and the same alternatives as the source; simplify the wording without adding work that the code does not perform.
controller : Controller, game1 : Game, and jordan : Player.GetCurrentPlayer() from controller to game1 and activate game1 for the call.jordan. End the game activation after that result.selected now refers to existing jordan near the caller and target. Do not draw selected as a fourth instance.Compare this reference with the diagram you built in Violet. Layout may differ; the source meaning, labels, and relevant connections should agree.
The returned reference gives selected access to Jordan; it does not turn game1 into a Player. A later Player call would need its own message after this return.