I am trying to build a class that is only modifiable by the GameController, but accessible to any class. What design pattern should I research to accomplish this?
*I am building this in Java, and the GameController is my Main class. So, I can not create a private instance in the GameController class. Wish it was that simple.
Aucun commentaire:
Enregistrer un commentaire