Package org.moparscape.msc.gs.model

Examples of org.moparscape.msc.gs.model.Npc.resetCombat()


    }

    if (attacker instanceof Npc) {
      Npc n = (Npc) attacker;
      if (attacker.getHits() <= 0) {
        n.resetCombat(CombatState.ERROR);
        owner.resetCombat(CombatState.ERROR);
        this.stop();
        return;
      }
    }
View Full Code Here


      }
    }
    if (opponent instanceof Npc) {
      Npc n = (Npc) opponent;
      if (opponent.getHits() <= 0) {
        n.resetCombat(CombatState.ERROR);
        owner.resetCombat(CombatState.ERROR);
        this.stop();
        return;
      }
    }
View Full Code Here

          }

          if (go) {
            player.getActionSender().sendSound("retreat");
            npc.unblock();
            npc.resetCombat(CombatState.RUNNING);
            player.resetCombat(CombatState.WAITING);
            npc.setRan(true);
            npc.setPath(new Path(attacker.getX(), attacker.getY(),
                DataConversions.random(npc.getLoc().minX(), npc
                    .getLoc().maxX()), DataConversions
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.