@Override
public void gameUpdate(Event e, Object notice) {
if (e instanceof KeyPressEvent){
KeyEvent key= ((KeyPressEvent)e).getKey();
if (key.getKeyCode()==KeyEvent.VK_ESCAPE){
new ViewChangeEvent(MainView.class).notify(EViewChangeEvent.CLOSE_DIALOG);
new ViewChangeEvent(NoticeView.class).notify(EViewChangeEvent.NOTICE_HIDE);
Event.remove(this);
}
}
if (e instanceof MouseClickEvent){
polygons.testAndExecute((Point) notice);
footerPolygons.testAndExecute((Point) notice);
}
if (e instanceof ViewChangeEvent){
ViewChangeEvent event = (ViewChangeEvent) e;
if (event.getAddresse()==getClass()){
if (notice instanceof ETransferDialogType){
logger.debug("Change dialog type from "+type+" to "+notice);
setDialogType((ETransferDialogType) notice);
}
}