Im writing my first java game, and I use a main Game class that use different Screens (ie. mapScreen, combatScreen, menuScreen) to handle different sections on the game. And right now I need my mapScreen to tell my game that it's done and we should move to the combatScreen.
And so I just wanted to ask about best practices here, should mapScreen implement ActionListener and have the Game subscribe to these notifications, or is there a more common way to do it?
Also, can anyone please link to a good explenation of how I should implement the ActionListener?
thanks in advance.