Examples of onDamaged()


Examples of games.stendhal.client.entity.RPEntity.onDamaged()

    if (target != null) {
      if (event.has("hit")) {
        int damage = event.getInt("damage");
        if (damage != 0) {
          entity.onAttackDamage(dtype);
          target.onDamaged(entity, damage);
        } else {
          entity.onAttackBlocked(dtype);
          target.onBlocked(entity);
        }
      } else {
View Full Code Here
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.