Examples of initHP()


Examples of games.stendhal.server.entity.creature.Creature.initHP()

      if(!"-".equals(parts[0])) {
        creature.setName(parts[0]);
      }
      creature.setAtk(newatk);
      creature.setDef(newdef);
      creature.initHP(newHP);
      creature.setXP(newXP);

      creature.update();
      creature.notifyWorldAboutChanges();
View Full Code Here

Examples of games.stendhal.server.entity.creature.Pet.initHP()

    if (pet != null) {
      logger.debug("Player has a pet");

      if (!pet.has("base_hp")) {
        pet.initHP(200);
      }

      if (placeAnimalIntoWorld(pet, player)) {
        player.setPet(pet);
      } else {
View Full Code Here

Examples of games.stendhal.server.entity.creature.RaidCreature.initHP()

    final int newatk = LOW_ATK;
    final int newHP = HIGH_HP;
    creature.setName(creaturename);
    creature.setDescription(creature.describe() + " It has been magically enchanted, with its normal attack power converted into longer life.");
    creature.setAtk(newatk);
    creature.initHP(newHP);
   
    sandbox.add(creature, x, y );

  }
View Full Code Here

Examples of games.stendhal.server.entity.creature.Sheep.initHP()

    if (sheep != null) {
      logger.debug("Player has a sheep");

      if (!sheep.has("base_hp")) {
        sheep.initHP(10);
      }

      if (placeAnimalIntoWorld(sheep, player)) {
        player.setSheep(sheep);
      } else {
View Full Code Here

Examples of games.stendhal.server.entity.npc.GhostNPCBase.initHP()

    ghost.setEntityClass("woman_005_npc");
    // she is a ghost so she is see through
    ghost.setVisibility(50);
    ghost.setPosition(65, 74);
    // she has low HP
    ghost.initHP(30);
    ghost.setBaseHP(100);
    zone.add(ghost);
  }
}
View Full Code Here

Examples of games.stendhal.server.entity.npc.GhostNPCBase.initHP()

    ghost.setEntityClass("deadmannpc");
    // he is a ghost so he is see through
    ghost.setVisibility(70);
    ghost.setPosition(216, 127);
    // he has low HP
    ghost.initHP(30);
    ghost.setBaseHP(100);
    zone.add(ghost);
  }
}
View Full Code Here

Examples of games.stendhal.server.entity.npc.RatKidsNPCBase.initHP()

    };

    rat.setDescription("You see a rat child.");
    rat.setEntityClass("ratchildboy1npc");
    rat.setPosition(40, 105);
    rat.initHP(100);
    zone.add(rat);
  }
}
View Full Code Here

Examples of games.stendhal.server.entity.npc.RatKidsNPCBase.initHP()

    };

    rat.setDescription("You see a rat child.");
    rat.setEntityClass("ratchildboy2npc");
    rat.setPosition(97, 5);
    rat.initHP(100);
    zone.add(rat);
  }
}
View Full Code Here

Examples of games.stendhal.server.entity.npc.SpeakerNPC.initHP()

      }
    };

    mermaid.setEntityClass("marmaidnpc");
    mermaid.setPosition(8, 92);
    mermaid.initHP(100);
    mermaid.setDescription("You see Nicklesworth. Isn't she a lovely mermaid?");
    zone.add(mermaid);
  }
}
View Full Code Here

Examples of games.stendhal.server.entity.npc.SpeakerNPC.initHP()

      }
    };

    groundskeeperNPC.setEntityClass("groundskeepernpc");
    groundskeeperNPC.setPosition(35, 13);
    groundskeeperNPC.initHP(1000);
    groundskeeperNPC.setDescription("You see Morgrin, the facility manager of the Magic City school. He is always busy and needs a helping hand.");
    zone.add(groundskeeperNPC);
  }
}
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.