Use Case:
Pong Scoring
I have a GameAppState that extends AbstractAppState
It has two variables (int) to keep score of playerOneScore and playerTwoScore along with get and setters
I have a BallControl that extends AbstractControl
In the ball Control I am checking to see if the ball gets past one of the paddles
If so I want to update the value with GameAppState.setPlayerOne(GameAppState.getPlayerOne()+1)
My Question is
How do I access a AppState from a Control. Do I just keep a reference to the AppState when I create the Control or is there a better option?