Package game.gui

Examples of game.gui.GuiPause


        if ((gui != null && !gui.pausesGame()) || gui == null) {
          gui = new GuiFocus(this, Game.WIDTH, Game.HEIGHT);
        }
      } else {
        if ((gui != null && !gui.pausesGame()) || gui == null) {
          gui = new GuiPause(this, Game.WIDTH, Game.HEIGHT);
        }
      }
      Game.debug(DebugLevel.INFO, "Lost the focus!");
    }
  }
View Full Code Here


  @Override
  public void actionPerformed(InputEvent event) {
    if (event.key.id == input.esc.id
        && event.type == InputEventType.PRESSED) {
      game.showGui(new GuiPause(game, Game.WIDTH, Game.HEIGHT));
    }
    if (event.key.id == input.action.id
        && event.type == InputEventType.PRESSED) {
      if (!isActing && performActionOn != null) {
        performActionOn.action(this);
View Full Code Here

TOP

Related Classes of game.gui.GuiPause

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.