Package games.stendhal.server.entity.player

Examples of games.stendhal.server.entity.player.Player.addXP()


      // point, because getting nothing lowers motivation.
      if (reward == 0) {
        reward = 1;
      }

      killer.addXP(reward);
     
      // For some quests etc., it is required that the player kills a
      // certain creature without the help of others.
      // Find out if the player killed this RPEntity on his own, but
      // don't overwrite solo with shared.
View Full Code Here


    arena.add(creature);
    assertFalse("is not attacking", strat.hasValidTarget(creature));
    arena.add(veteran);
    arena.add(newbie);
    veteran.addXP(10000);
    newbie.addXP(100);
   
    assertTrue("sanity check for player levels", veteran.getLevel() > newbie.getLevel());
   
    creature.setPosition(3, 3);
    veteran.setPosition(3, 4);
View Full Code Here

    StendhalRPZone arena = new StendhalRPZone("arena");
    arena.add(creature);
    assertFalse("is not attacking", strat.hasValidTarget(creature));
    arena.add(veteran);
    arena.add(scrollCreature);
    veteran.addXP(10000);
   
    assertTrue("sanity check for enemy levels", veteran.getLevel() > scrollCreature.getLevel());
   
    creature.setPosition(3, 3);
    scrollCreature.setPosition(2, 4);
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.