Package com.google.gwt.maeglin89273.game.ashinyballonthecross.client.core.creation

Examples of com.google.gwt.maeglin89273.game.ashinyballonthecross.client.core.creation.MainCreation


        p.@com.google.gwt.maeglin89273.game.ashinyballonthecross.client.page.HasLoginButtonPage.LoginButtonAndIDDisplay::secondCheck()();
      }
    }-*/;
    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) {
                //don't display the button
View Full Code Here


    //init here
    manager=new TutorialManager(MEngine.getAssetManager().getJson("configs/tutorial_configs.json"),
        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) {
View Full Code Here

  public static class CrossBuilder implements LevelBuilder{

    @Override
    public void build(JSONObject creation) {
      JSONObject pos=creation.get(POSITION).isObject();
      new Cross(
          new Point(pos.get(X).isNumber().doubleValue(),
                 pos.get(Y).isNumber().doubleValue()),
          Math.toRadians(creation.get(ANGLE).isNumber().doubleValue()));
                
     
View Full Code Here

       
      }
    }
  }
  public MainCreation onPenUp(Point p){
    MainCreation c=null;
    for(CreativeKey key:keys){
      if(key.isPressed()){
        c=key.getDefiner().onPenUp(p);
      }
    }
View Full Code Here

    @Override
    public MainCreation onPenUp(Point p) {
      if(position!=null){
        updatePenPosition(p);
        MainCreation c=defineFinished();
        reset();
        return c;
      }
      return null;
    }
View Full Code Here

  /**
   * remove the first main creation from the creations list, and also call the destroy() method.
   */
  public MainCreation removeFirstCreation(){
    if(!creations.isEmpty()){
      MainCreation c=this.creations.get(0);
      c.destroy();
      return c;
    }
    return null;
  }
View Full Code Here

  /**
   * remove the last main creation from the creations list, and also call the destroy() method.
   */
  public MainCreation removeLastCreation(){
    if(!creations.isEmpty()){
      MainCreation c=this.creations.get(creations.size()-1);
      c.destroy();
      return c;
    }
    return null;
  }
View Full Code Here

    public void onPenDown(Point p){
      pointA=p;
    }
    @Override
    public MainCreation onPenUp(Point p){
      MainCreation c= null;
      updatePenPosition(p);
      if(pointA!=null&&pointB!=null){
        if(pointA.delta(pointB).getSquare()<MIN_LENGTH_SQUARE){
          c=new FragmentalLine(getCreationRequiredPower(), true, pointA, pointB, ASBOTXConfigs.Color.DARK_GRAY);
        }else{
View Full Code Here

        }
      }
    }
    @Override
    public MainCreation onPenUp(Point p){
      MainCreation c= null;
      updatePenPosition(p);
      if(pointA!=null&&pointB!=null&&showingShapesCount!=0){
        c=defineFinished();
      }
      reset();
View Full Code Here

       
      }
    }
    @Override
    public MainCreation onPenUp(Point p){
      MainCreation c= null;
      updatePenPosition(p);
      if(center!=null){
        c=defineFinished();
      }
      reset();
View Full Code Here

TOP

Related Classes of com.google.gwt.maeglin89273.game.ashinyballonthecross.client.core.creation.MainCreation

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.