Package com.googlecode.jumpnevolve.graphics

Examples of com.googlecode.jumpnevolve.graphics.Timer


   * @param activated
   */
  public Shooter(World world, NextShape shape, float shotInterval,
      boolean activated) {
    super(world, shape, Masses.NO_MASS);
    this.timeToNextShot = new Timer(shotInterval);
    if (activated) {
      this.timeToNextShot.start();
    }
  }
View Full Code Here


  private Timer toLowVel;

  public Shot(World world, NextShape shape, float mass, float livingTime,
      Vector shotDirection, float shotSpeed) {
    super(world, shape, mass, shotDirection.getDirection().mul(shotSpeed));
    this.livingTime = new Timer(livingTime);
    this.livingTime.start();
    this.toLowVel = new Timer(livingTime / 5.0f);
  }
View Full Code Here

  private final Timer timer;

  public ElectronEmitter(World world, Vector position, float delay) {
    super(world, ShapeFactory.createCircle(position, 1));
    this.timer = new Timer(delay);
    this.timer.start();
    this.timer.setTime(0);
  }
View Full Code Here

TOP

Related Classes of com.googlecode.jumpnevolve.graphics.Timer

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.