Package de.creepsmash.client.panel

Examples of de.creepsmash.client.panel.GameScreen


   */
  public void popScreen() {

    if (!this.screens.isEmpty()) {

      GameScreen popped = this.screens.peek();
      this.remove(this.screens.pop());

      this.add(this.screens.peek());
      this.screens.peek().setBounds(0, 0, this.getWidth(),
          this.getHeight());
      this.screens.peek().start();
      this.screens.peek().validate();
      this.screens.peek().initialize(this);

      popped.end();
    }

    this.repaint();
  }
View Full Code Here


  /**
   * Clear the screen.
   */
  public void clearScreen() {
    while (!this.screens.empty()) {
      GameScreen pop = this.screens.peek();
      this.remove(pop);
      pop.end();
      this.screens.pop();
    }
  }
View Full Code Here

TOP

Related Classes of de.creepsmash.client.panel.GameScreen

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.