public class PlayerWaitingController extends Controller implements IPlayerWaitingController, ModelObserver
| Modifier and Type | Field and Description | 
|---|---|
| private boolean | joinedGame | 
| Constructor and Description | 
|---|
| PlayerWaitingController(IPlayerWaitingView view) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addAI()Called when the "Add AI" button is clicked in the player waiting view | 
| void | alert()Notifies an object that something has happened | 
| IPlayerWaitingView | getView()View getter | 
| private void | refreshPlayersWaiting()Refreshes the players waiting list | 
| void | start()Displays the player waiting view | 
public PlayerWaitingController(IPlayerWaitingView view)
public IPlayerWaitingView getView()
IControllergetView in interface IControllergetView in class Controllerpublic void start()
IPlayerWaitingControllerstart in interface IPlayerWaitingControllerprivate void refreshPlayersWaiting()
public void addAI()
IPlayerWaitingControlleraddAI in interface IPlayerWaitingControllerpublic void alert()
ModelObserveralert in interface ModelObserver