Package com.googlecode.jumpnevolve.math

Examples of com.googlecode.jumpnevolve.math.NextCollision


   *            Die Form mit Angaben zur Position des Objekts.
   */
  public AbstractObject(World world, NextShape shape) {
    this.world = world;
    this.shape = this.oldShape = shape;
    this.collision = new NextCollision(this.isMoveable());
  }
View Full Code Here


      // Schwerkraft wirken lassen
      this.applyGravity();
    }

    // Kollision zurücksetzen
    this.collision = new NextCollision(this.isMoveable());
  }
View Full Code Here

  public void onCrash(AbstractObject other, CollisionResult colResult) {
    // Treffen auf ein Living-Object, wenn dieses ein Damageable ist
    if (this instanceof Damageable && other instanceof Living) {
      // Schaden zufügen, wenn das Damageable dem Living Schaden zufügen
      // will
      NextCollision col = new NextCollision(this.isMoveable());
      col.addCollisionResult(colResult);
      if (((Damageable) this).wantDamaging((Living) other)
          && ((Damageable) this).canDamage(col)) {
        ((Living) other).damage((Damageable) this);
      }
    }
View Full Code Here

TOP

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

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.