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

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


   
    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

    if(power<c.getContentPower()){
      return false;
    }
    if(c.getContentPower()!=0){
      power-=c.getContentPower();
      firePowerChangedEvents(new CreatorPropertiesChangedEvent(this));
      updateScore();
    }
    return true;
  }
View Full Code Here

    bufferRestorePower+=c.getContentPower();
  }
  private void updateScore(){
    if(power<score){
      score=power;
      fireScoreChangedEvents(new CreatorPropertiesChangedEvent(this));
    }
   
  }
View Full Code Here

      if(score+bonus<power){
        score+=bonus;
      }else{
        score=power;
      }
      fireScoreChangedEvents(new CreatorPropertiesChangedEvent(this));
    }
  }
View Full Code Here

  }
  public void restore(){
    if(power<maxPower&&bufferRestorePower>0){
      bufferRestorePower--;
      power++;
      firePowerChangedEvents(new CreatorPropertiesChangedEvent(this));
    }
  }
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

TOP

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

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.