Package com.google.gwt.maeglin89273.game.mengine.timer

Examples of com.google.gwt.maeglin89273.game.mengine.timer.TimerTask


   
    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

  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

      }
    }-*/;
    public void secondCheck(){
      if(enabled){
        final LocalPlayer localPlayer=game.getLocalPlayer();
        game.getPlayerService().checkLogin(new CheckLoginRequest(ASBOTXConfigs.CLOSE_PAGE_PATH,
            localPlayer.getPlayer()),
            new AsyncCallback<CheckLoginResponse>(){
 
              @Override
              public void onFailure(Throwable caught) {
View Full Code Here

    setTotal(player.getTotal());
    setTimestamp(player.getTimestamp());
    setKey(player.getKey());
  }
  public TransportablePlayer getPlayer(){
    return new TransportablePlayer(getKey(),getID()==null?"":getID(),getTotal(),getEncryptedAchievements(),getTimestamp());
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.maeglin89273.game.mengine.timer.TimerTask

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.