Examples of describe()


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

    final String creaturename = "enchanted " + creature.getTitle();
   
    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.item.Item.describe()

   
    final Item ring = player.getFirstEquipped("emerald ring");
    assertTrue(ring.isBound());
    assertTrue(player.isBoundTo(ring));
    assertEquals("You see an emerald ring, known as ring of life. Wear it, and you risk less from death.", ring.getDescription());
    assertEquals("You see an emerald ring, known as the ring of life. Wear it, and you risk less from death. It is a special quest reward for player, and cannot be used by others.", ring.describe());
    assertThat(en.getCurrentState(), is(ConversationStates.ATTENDING));
    assertTrue(player.isQuestCompleted(QUEST_SLOT));
    en.step(player, "bye");
    assertEquals("Bye, my friend.", getReply(npc));
  }
View Full Code Here

Examples of games.stendhal.server.entity.item.Item.describe()

    orderfixandfetchordered(player);
    final Item ringafter = player.getFirstEquipped("emerald ring");
    assertTrue(ringafter.isBound());
    assertTrue(player.isBoundTo(ringafter));
    assertEquals("You see an emerald ring, known as ring of life. Wear it, and you risk less from death.", ringafter.getDescription());
    assertEquals("You see an emerald ring, known as the ring of life. Wear it, and you risk less from death. It is a special quest reward for player, and cannot be used by others.", ringafter.describe());

    assertEquals("Bye, my friend.", getReply(npc));
 
  }
View Full Code Here

Examples of games.stendhal.server.entity.item.Item.describe()

    if (seller) {
      item.put("price", -price);
    } else {
      item.put("price", price);
    }
    item.put("description_info", item.describe());
    // compatibility with 0.85 clients
    item.put("description", item.describe());
    return item;
  }
}
View Full Code Here

Examples of games.stendhal.server.entity.item.Item.describe()

    } else {
      item.put("price", price);
    }
    item.put("description_info", item.describe());
    // compatibility with 0.85 clients
    item.put("description", item.describe());
    return item;
  }
}
View Full Code Here

Examples of games.stendhal.server.entity.item.Item.describe()

   * @return Item
   */
  private Item prepareItem(String name, int price) {
    Item item = SingletonRepository.getEntityManager().getItem(name);
    item.put("price", -price);
    item.put("description", item.describe());
    return item;
  }
}
View Full Code Here

Examples of games.stendhal.server.entity.item.ItemInformation.describe()

    if (seller) {
      item.put("price", -price);
    } else {
      item.put("price", price);
    }
    item.put("description_info", item.describe());
    // compatibility with 0.85 clients
    item.put("description", item.describe());
    return item;
  }
}
View Full Code Here

Examples of games.stendhal.server.entity.item.ItemInformation.describe()

    } else {
      item.put("price", price);
    }
    item.put("description_info", item.describe());
    // compatibility with 0.85 clients
    item.put("description", item.describe());
    return item;
  }
}
View Full Code Here

Examples of openperipheral.adapter.IDescriptable.describe()

  @LuaCallable(returnTypes = LuaType.TABLE, description = "Get a complete table of information about all available methods")
  public Map<?, ?> getAdvancedMethodsData() {
    Map<String, Object> info = Maps.newHashMap();
    for (Map.Entry<String, E> e : methods.entrySet()) {
      final IDescriptable m = e.getValue().getWrappedMethod();
      info.put(e.getKey(), m.describe());
    }
    return info;
  }
}
View Full Code Here

Examples of org.apache.blur.thrift.generated.Blur.Iface.describe()

    final String controllerConnectionStr = cmd.getOptionValue("c");
    final String tableName = cmd.getOptionValue("t");

    final Iface client = controllerPool.getClient(controllerConnectionStr);
    TableDescriptor tableDescriptor = client.describe(tableName);

    Job job = new Job(configuration, "Blur indexer [" + tableName + "]");
    job.setJarByClass(CsvBlurDriver.class);
    job.setMapperClass(CsvBlurMapper.class);
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.