Package def_classes

Examples of def_classes.Point


    int x, y;
    getIdentifier();
    if (line.contains("POSITION")) {
      x = Integer.valueOf( line.substring(line.indexOf('(')+1, line.indexOf(',')) );
      y = Integer.valueOf( line.substring(line.indexOf(',')+1, line.indexOf(')')) );
      position = new Point(x, y);
    }
  }
View Full Code Here


    int x, y;
    getIdentifier();
    if (line.contains("START_POSITION")) {
      x = Integer.valueOf(line.substring(line.indexOf('(')+1, line.indexOf(',')));
      y = Integer.valueOf(line.substring(line.indexOf(',')+1, line.indexOf(')')));
      startPosition = new Point(x, y);
    }
  }
View Full Code Here

    int x, y;
    getIdentifier();
    if (line.contains("END_POSITION")) {
      x = Integer.valueOf(line.substring(line.indexOf('(')+1, line.indexOf(',')));
      y = Integer.valueOf(line.substring(line.indexOf(',')+1, line.indexOf(')')));
      endPosition = new Point(x, y);
    }
  }
View Full Code Here

  public CloudCircular(
      int x, int y, int x2, int y2,
      int velocity, Box bbox, SpriteSheet sprSheet, int cloudSize){
    xRadius = (x2-x)/2;
    yRadius = (y2-y)/2;
    setWorldPosition(new Point(x2 - (bbox.getLeft() + bbox.getWidth()/2),
        y2-yRadius - (bbox.getTop() + bbox.getHeight()/2)));   
    setBoundingBox(bbox);
    cycleDegree = 0;
    cycleStep = velocity/10.0;
    setSolidSurface(true);
View Full Code Here

   */
  public CloudLinear(
      int x, int y, int x2 , int y2,
      int velocity, Box bbox, SpriteSheet sprSheet, int cloudSize) {
   
    setWorldPosition(new Point(
        x+(x2-x)/2 - (bbox.getLeft() + bbox.getWidth()/2),
        y+(y2-y)/2 - (bbox.getTop() + bbox.getHeight()/2)));   
    setBoundingBox(bbox);
    cyclePosition1 = new Point(x, y);
    cyclePosition2 = new Point(x2, y2);
    cycleDegree = 0;
    cycleStep = velocity/10.0;
    setSolidSurface(true);
    currentAnim = new GfxState(sprSheet, cloudSize);
  }
View Full Code Here

    //stay put.
  }
 
  @Override
  public void hitObject() {
    Point pos = new Point(25, 0);   
    pos.add(getWorldPosition());
    CookieFactory.setTemplatePosition(pos);   
    myWorld.createInstance(CookieFactory.getFactory());
    myWorld.removeInstance(getObjectID());
  }
View Full Code Here

TOP

Related Classes of def_classes.Point

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.