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()
IController
getView
in interface IController
getView
in class Controller
public void start()
IPlayerWaitingController
start
in interface IPlayerWaitingController
private void refreshPlayersWaiting()
public void addAI()
IPlayerWaitingController
addAI
in interface IPlayerWaitingController
public void alert()
ModelObserver
alert
in interface ModelObserver