Package games.stendhal.server.entity

Examples of games.stendhal.server.entity.Outfit


        // help
        addHelp("Have fun.");
      }
    };

    npc.setOutfit(new Outfit(0, 04, 07, 32, 13));
    npc.setPosition(3, 7);
    npc.setDirection(Direction.DOWN);
    npc.initHP(100);
    npc.setDescription("You see Susi. Did you ever hear the story about her being lost for some time?");
    zone.add(npc);
View Full Code Here


    this.addOutfit = addOutfit;
    this.temporaryOutfit = temporaryOutfit;
  }

  public void fire(final Player player, final Sentence sentence, final EventRaiser npc) {
    Outfit outfit = player.getOriginalOutfit();
    if (outfit == null) {
      outfit = player.getOutfit();
    }

    // Depending on if you want to add or remove part of the outfit...
    if (addOutfit) {
      //... either put the new outfit over the old one
      // and set the players outfit to the combination
      Outfit tempOutfit = this.outfitChange.putOver(outfit);
      player.setOutfit(tempOutfit, temporaryOutfit);
    } else {
      //... or remove (parts of) the players outfit
      // and set the players outfit to this combination
      Outfit tempOutfit = outfit.removeOutfit(this.outfitChange);
      player.setOutfit(tempOutfit, temporaryOutfit);
    }
  }
View Full Code Here

  }

  // Load the different outfits into the list
  public void prepareBalloonList() {
    for (int i = 0; i < 4; i++) {
      balloonList[i] = new Outfit(i+1,null,null,null,null);
    }

  }
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.Outfit

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.