Package com.google.gwt.maeglin89273.game.ashinyballonthecross.client.core.ui.button

Source Code of com.google.gwt.maeglin89273.game.ashinyballonthecross.client.core.ui.button.WelcomeButton

/**
*
*/
package com.google.gwt.maeglin89273.game.ashinyballonthecross.client.core.ui.button;

import com.google.gwt.maeglin89273.game.ashinyballonthecross.client.page.WelcomePage;
import com.google.gwt.maeglin89273.game.ashinyballonthecross.client.utility.ASBOTXConfigs;
import com.google.gwt.maeglin89273.game.mengine.asset.sprite.SpriteBlock;
import com.google.gwt.maeglin89273.game.mengine.component.button.BoxButton;
import com.google.gwt.maeglin89273.game.mengine.core.MEngine;
import com.google.gwt.maeglin89273.game.mengine.physics.Point;

/**
* @author Maeglin Liao
*
*/
public class WelcomeButton extends BoxButton {

  /**
   * @param p
   * @param w
   * @param h
   * @param block
   */
  public WelcomeButton(Point p,double bounds) {
    super(p,bounds,bounds, new SpriteBlock(5*(200+SpriteBlock.SPACING),0,200,200,ASBOTXConfigs.Utility.getButtonsSpriteSheet()));
    // TODO Auto-generated constructor stub
  }

  /* (non-Javadoc)
   * @see com.google.gwt.maeglin89273.game.mengine.component.button.GameButton#doTask()
   */
  @Override
  public void doTask() {
    MEngine.getGeneralGame().setPage(new WelcomePage());
  }

  /* (non-Javadoc)
   * @see com.google.gwt.maeglin89273.game.mengine.component.GeneralComponent#update()
   */
  @Override
  public void update() {
    // TODO Auto-generated method stub

  }

}
TOP

Related Classes of com.google.gwt.maeglin89273.game.ashinyballonthecross.client.core.ui.button.WelcomeButton

TOP
Copyright © 2018 www.massapi.com. 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.