Guest User

Untitled

a guest
Sep 1st, 2014
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.89 KB | None | 0 0
  1. package com.ew.game.player.dialogues;
  2.  
  3. import com.ew.game.player.actions.GemCutting;
  4. import com.ew.game.player.actions.GemCutting.Gem;
  5. import com.ew.game.player.content.SkillsDialogue;
  6. import com.ew.game.player.dialogues.Dialogue;
  7.  
  8. public class GemCuttingD extends Dialogue {
  9.  
  10.     private Gem gem;
  11.  
  12.     @Override
  13.     public void start() {
  14.         this.gem = (Gem) parameters[0];
  15.         SkillsDialogue
  16.                 .sendSkillsDialogue(
  17.                         player,
  18.                         SkillsDialogue.CUT,
  19.                         "Choose how many you wish to cut,<br>then click on the item to begin.",
  20.                         player.getInventory().getItems()
  21.                                 .getNumberOf(gem.getUncut()),
  22.                         new int[] { gem.getUncut() }, null);
  23.  
  24.     }
  25.  
  26.     @Override
  27.     public void run(int interfaceId, int componentId) {
  28.         player.getActionManager().setAction(
  29.                 new GemCutting(gem, SkillsDialogue.getQuantity(player)));
  30.         end();
  31.     }
  32.  
  33.     @Override
  34.     public void finish() {
  35.  
  36.     }
  37.  
  38. }
Advertisement
Add Comment
Please, Sign In to add comment