Package com.googlecode.jumpnevolve.math

Examples of com.googlecode.jumpnevolve.math.Circle


  public void draw(Graphics g) {
    // TODO: Anstatt einfachen Kreisen könnten Grafiken mit Lichtreflex etc.
    // verwendet werden
    switch (status) {
    case STATUS_FINISHED:
      GraphicUtils.draw(g, new Circle(this.position,
          Parameter.CAMPAIGN_MARKER_RADIUS), Color.green);
      break;
    case STATUS_AVAIABLE:
      GraphicUtils.draw(g, new Circle(this.position,
          Parameter.CAMPAIGN_MARKER_RADIUS), Color.blue);
      break;
    case STATUS_NOTAVAIBLE:
    default:
      GraphicUtils.draw(g, new Circle(this.position,
          Parameter.CAMPAIGN_MARKER_RADIUS), Color.red);
      break;
    }
  }
View Full Code Here


        / 2.0f * zoom, rect.height / 2.0f * zoom));
    draw(g, rect2);
  }

  public static void drawScaled(Graphics g, Circle circle, float zoom) {
    draw(g, new Circle(circle.getCenter(), circle.radius * zoom));
  }
 
View Full Code Here

    this.drawPlayer(g);
    this.gui.draw(g);
  }

  private void drawPlayer(Graphics g) {
    GraphicUtils.fill(g, new Circle(this.playerPosition.getPosition(),
        10.0f), Color.blue);
    this.playerPosition.draw(g);
    GraphicUtils.drawString(g, this.playerPosition.getPosition(), "Player");
  }
View Full Code Here

TOP

Related Classes of com.googlecode.jumpnevolve.math.Circle

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.