Your email address will not be published.
The updateBalance is in the Player class, and the Player class gets the wrapper in the constructor. The “mother game class” creates the player and has the wrWpner.aarnipg: do NOT use Guice to inject this, as serializing instances created by Guice creates a bad mess!If you make the wrapper transient, you will have to deal with the possibility of it being null if the game state has been deserialized. Since I know that the transient memebers of the wrapper will be injected into the on each action, I know neither the wrapper or its members will be null when I handle an action. Does that make sense?