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

Source Code of com.google.gwt.maeglin89273.game.ashinyballonthecross.client.core.creation.line.SimpleStaticLine$SimpleStaticLineDefiner

/**
*
*/
package com.google.gwt.maeglin89273.game.ashinyballonthecross.client.core.creation.line;


import com.google.gwt.maeglin89273.game.ashinyballonthecross.client.core.creation.MainCreation;
import com.google.gwt.maeglin89273.game.ashinyballonthecross.client.utility.ASBOTXConfigs;
import com.google.gwt.maeglin89273.game.mengine.physics.Point;

/**
* @author Maeglin Liao
*
*/
public class SimpleStaticLine extends StaticLine {
  public static final int LIMITED_TIME=30;
 
  /**
   *
   * @param creator
   * @param p1
   * @param p2
   */
  public SimpleStaticLine(Point p1, Point p2) {
    this(0,false, p1, p2);
   
  }
  private SimpleStaticLine( int contentPower, Point p1, Point p2) {
    this( contentPower, true, p1, p2);
  }
  /**
   * @param contentPower TODO
   * @param p1
   * @param p2
   * @param creator
   */
  private SimpleStaticLine(int contentPower,boolean beControlled, Point p1, Point p2) {
    super(contentPower,beControlled, p1, p2, ASBOTXConfigs.Color.BLACK);
   
  }
  @Override
  public void update() {
    // TODO Auto-generated method stub
   
  }
  public static class SimpleStaticLineDefiner extends StaticLineDefiner{

    public SimpleStaticLineDefiner(){
      super(ASBOTXConfigs.CreationPowerComsumption.SIMPLE_STATIC_LINE,new Point(0,ICON_BOUNDS_PLUS_SPACING),ASBOTXConfigs.Color.BLACK);
     
    }
    @Override
    protected MainCreation create(int requiredPower){
      return new SimpleStaticLine(requiredPower,pointA, pointB);
    }
  }
 
}
TOP

Related Classes of com.google.gwt.maeglin89273.game.ashinyballonthecross.client.core.creation.line.SimpleStaticLine$SimpleStaticLineDefiner

TOP
Copyright © 2018 www.massapi.com. 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.