Continuing gradual process of collecting state from various GUI components and handlers and aggregating it in PlayerController.
Removed references to Refree from some handlers, replacing them with direct use of PlayerController (Law of Demeter).
This commit is contained in:
@@ -46,7 +46,7 @@ public class MainFrame extends JFrame {
|
||||
ScorePanel sp = new ScorePanel(game);
|
||||
BoardPanel bp = new BoardPanel(game);
|
||||
MessagePanel mp = new MessagePanel(game);
|
||||
TileSelectionPanel tp = new TileSelectionPanel(game);
|
||||
TileSelectionPanel tp = new TileSelectionPanel(game.getPlayer());
|
||||
|
||||
// Add refreshables.
|
||||
elements.add(sp);
|
||||
|
||||
Reference in New Issue
Block a user