Newer
Older
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package GUI.game;
/**
*
* @author Kovax
*/
public class Controller
{
private Boolean isStopButtonPressed = false;
Controller()
{
}
public void registerView(View view)
{
this.view = view;
}
public void registerModel(Model model)
this.model = model;
}
public int getButtonState()
{
if( isStopButtonPressed )
return 1;
return -1;
}
public void resetButtonState()
{
this.isStopButtonPressed = false;