Package com.google.gwt.maeglin89273.game.ashinyballonthecross.client.utility.event

Examples of com.google.gwt.maeglin89273.game.ashinyballonthecross.client.utility.event.GameOverCallback


   
    this.taskCmpts=new StepComponent[2+(markNum<1?1:markNum)];
    this.taskCmpts[BUTTON_INDEX]=new NextStepButton(new Point(gameWidth-130,gameHeight-60),this);
    this.taskCmpts[LIST_INDEX]=new TasksList(gameWidth-185,gameHeight)
    for(int i=2;i<this.taskCmpts.length;i++){
      this.taskCmpts[i]=new BlueMark();
    }
   
    this.parseSteps(configs,handlers);
  }
View Full Code Here


    this.detector=new TaskDetector(this);
   
    this.board=new StepBoard(new Point(10,10),gameWidth/2);
   
    this.taskCmpts=new StepComponent[2+(markNum<1?1:markNum)];
    this.taskCmpts[BUTTON_INDEX]=new NextStepButton(new Point(gameWidth-130,gameHeight-60),this);
    this.taskCmpts[LIST_INDEX]=new TasksList(gameWidth-185,gameHeight)
    for(int i=2;i<this.taskCmpts.length;i++){
      this.taskCmpts[i]=new BlueMark();
    }
   
View Full Code Here

 
  private Step[] steps;
  public TutorialManager(JsonFile configs,double gameWidth,double gameHeight,int markNum,TaskHandler[] handlers){
    this.detector=new TaskDetector(this);
   
    this.board=new StepBoard(new Point(10,10),gameWidth/2);
   
    this.taskCmpts=new StepComponent[2+(markNum<1?1:markNum)];
    this.taskCmpts[BUTTON_INDEX]=new NextStepButton(new Point(gameWidth-130,gameHeight-60),this);
    this.taskCmpts[LIST_INDEX]=new TasksList(gameWidth-185,gameHeight)
    for(int i=2;i<this.taskCmpts.length;i++){
View Full Code Here

   
    this.board=new StepBoard(new Point(10,10),gameWidth/2);
   
    this.taskCmpts=new StepComponent[2+(markNum<1?1:markNum)];
    this.taskCmpts[BUTTON_INDEX]=new NextStepButton(new Point(gameWidth-130,gameHeight-60),this);
    this.taskCmpts[LIST_INDEX]=new TasksList(gameWidth-185,gameHeight)
    for(int i=2;i<this.taskCmpts.length;i++){
      this.taskCmpts[i]=new BlueMark();
    }
   
    this.parseSteps(configs,handlers);
View Full Code Here

          k.getDefiner().updatePenPosition(p);
          totalExRePower+=k.getDefiner().getCreationRequiredPower();
        }
      }
      totalExRePower=Math.max(0, creator.getPower()-totalExRePower);
      fireDefiningListeners(new DefiningEvent(this,totalExRePower));
     
    }
  }
View Full Code Here

        getGameWidth(),getGameHeight(),2,TASK_HANDLERS);
    this.level=new Level(MEngine.getAssetManager().getJson("levels/tutorial_level.json"),
     new Point(getGameWidth()/2.0,getGameHeight()/2.0));
    this.creator=new Creator(level);
   
    creator.build(new GameOverCallback(){

      @Override
      public void showScore(int score) {
        //detect step 6
        manager.getDetector().detect(6, null);
View Full Code Here

  @Override
  public void onScreen(){
    if(inited){
      return;
    }
    creator.build(new GameOverCallback(){

      @Override
      public void showScore(int score) {
        getGame().setPage(new ScoreShowingPage(rootLayer,level,score));
      }
View Full Code Here

    this.buttons[0]=new StartButton(new Point(getGameWidth()/2.0,getGameHeight()/2.0));
    this.buttons[1]=new InformationButton(new Point(55,getGameHeight()-55));
    this.buttons[2]=new GuideButton(new Point(55,getGameHeight()-160));
   
    this.creator=new Creator(new Level(MEngine.getAssetManager().getJson("levels/welcome_level.json"),new Point(getGameWidth()/2,getGameHeight()/2)));
    creator.build(new GameOverCallback(){

      @Override
      public void showScore(int score) {
        WelcomePage.this.buttons[0].doTask();       
      }
View Full Code Here

  @Override
  public void onScreen() {
    Point center=new Point(getGameWidth()/2,getGameHeight()/2);
    this.creator=new Creator(new Level(MEngine.getAssetManager().getJson("levels/testing.json"),center));
    creator.build(new GameOverCallback(){

      @Override
      public void showScore(int score) {
               
      }
View Full Code Here

  protected HasLoginButtonPage(final Point buttonPos,final Point labelPos,final int buttonBounds,final TextAlign labelAlign,final CssColor textColor) {
    game=(ASBOTXGame) getGame();
    root=new GroupLayer();
   
    if(game.getLoginInfo()==null){
      game.getPlayerService().checkLogin(new CheckLoginRequest(ASBOTXConfigs.CLOSE_PAGE_PATH,game.getLocalPlayer().getPlayer()),
          new AsyncCallback<CheckLoginResponse>(){
 
        @Override
        public void onFailure(Throwable caught) {
          handleResponseFailure(caught);
View Full Code Here

TOP

Related Classes of com.google.gwt.maeglin89273.game.ashinyballonthecross.client.utility.event.GameOverCallback

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.