Package com.google.gwt.maeglin89273.client

Examples of com.google.gwt.maeglin89273.client.GameDevelopment


    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


 
  private void loadPlayerAchievements(String value){
    try{
      JSONObject object=JSONParser.parseStrict(MEngine.getCipher().decrypt(value)).isObject();
      this.encryptedAchvs=value;
      WorldType type;
      int[] scores;
      JSONArray worldScores;
      for(String typeString:object.keySet()){
        type=WorldType.valueOf(typeString);
        worldScores=object.get(typeString).isArray();
View Full Code Here

    private ButtonsRoller roller;
    private boolean left;
    private int rollingStep=0;
    private final int ROLLING_FULL_STEP=24;
    public RollerControlButton(Point p,ButtonsRoller roller,boolean left) {
      super(p, 25,new SpriteBlock((left?5:4)*(200+SpriteBlock.SPACING),2*(200+SpriteBlock.SPACING),200,200, ASBOTXConfigs.Utility.getButtonsSpriteSheet()));
      this.left=left;
      this.roller=roller;
    }
View Full Code Here

    }
   
  }
  private abstract class BigButton extends BoxButton{
    public BigButton(double bounds,int x) {
      super(new Point(0,0), bounds, bounds, new SpriteBlock(x,0,250,250,MEngine.getAssetManager().getSpriteSheet("images/big_buttons.png")));
    }
View Full Code Here

    connectionLock=false;
  }
  private class RefreshButton extends CircleButton{
   
    public RefreshButton(Point p, double r) {
      super(p, r, new SpriteBlock(2*(200+SpriteBlock.SPACING),
          3*(200+SpriteBlock.SPACING),200,200,ASBOTXConfigs.Utility.getButtonsSpriteSheet()));
    }
 
View Full Code Here

    private static final String DESCRIPTION="Store your achievements on the cloud.";
    private GameLabel label;
    private boolean enabled=true;
   
    public LoginButtonAndIDDisplay(Point buttonPos,Point labelPos,int bounds,TextAlign align,CssColor labelColor) {
      super(buttonPos, bounds,bounds,new SpriteBlock(3*(200+SpriteBlock.SPACING),
          chooseSpriteBlockY(ASBOTXConfigs.Utility.switchStatus(game.getLoginInfo().getStatus())),
          200,200,ASBOTXConfigs.Utility.getButtonsSpriteSheet()));
     
      if(game.getLoginInfo().isConnectionSuccess()){
        this.label=new GameLabel(labelPos,align, TextBaseline.MIDDLE,
View Full Code Here

* @author Maeglin Liao
*
*/
public class BackButton extends CircleButton{
  public BackButton(Point p,double r) {
    super(p,r, new SpriteBlock(5*(200+SpriteBlock.SPACING),2*(200+SpriteBlock.SPACING),200,200, ASBOTXConfigs.Utility.getButtonsSpriteSheet()));
  }
View Full Code Here

   * @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
  }
View Full Code Here

  protected final CreationDefiner[] definers;
  protected int index=0;
  protected boolean pressed;
  protected final Point unPressedBlockPos;
  protected CreativeKey(Point p, double w, double h,Point unPressedBlockPos,CreationDefiner[] definers) {
    super(p, w, h,new SpriteBlock((int)unPressedBlockPos.getX(),(int)unPressedBlockPos.getY(),200,200,
        MEngine.getAssetManager().getSpriteSheet("images/buttons.png")));
    this.unPressedBlockPos = unPressedBlockPos;
   
    this.definers = definers;
   
View Full Code Here

  }
  @Override
  public void draw(Context2d context){
    super.draw(context);
    if(pressed){
      SpriteBlock sb=getDefiner().getDefinerIcon();
      context.drawImage(sb.getSheetImage(), sb.getX(), sb.getY(), sb.getWidth(), sb.getHeight(),getLeftX(),getTopY(), getWidth(), getHeight());
    }
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.maeglin89273.client.GameDevelopment

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.