Package ch.sahits.game.event

Examples of ch.sahits.game.event.ViewChangeEvent


    }


    @Override
    public void run() {
      new ViewChangeEvent(MainView.class).notify(EViewChangeEvent.CLOSE_DIALOG);
      Event.remove(dialog);
    }
View Full Code Here


  @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);
        Event.remove(this);
      }
    }
    if (e instanceof MouseClickEvent){
      polygons.testAndExecute((Point) notice);
View Full Code Here

          pageState = PageState.HISTORY;
          state = MouseState.HISTORY_PAGE;
        } // end history
        if (polyName.equals(names[TEXT_FOCUS_NEW])){
          System.out.println("Clicked on new");
          new ViewChangeEvent(GameView.class).notify(EViewChangeEvent.DISPLAY_NEW_SP);
        }
      }     
    } // end of mouse click

  }
View Full Code Here

TOP

Related Classes of ch.sahits.game.event.ViewChangeEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.