Examples of canBePickedUp()


Examples of iryrwarosh.Item.canBePickedUp()

    terminal.write("evade: " + player.evadePercent(world) + "%", 54, 0, AsciiPanel.yellow, null);

    terminal.write(String.format("%3d" + (char)4, player.rupees()), 64, 0, Common.hsv(60, 25, 75), null);
   
    Item item = world.item(player.position.x, player.position.y);
    if (item != null && item.canBePickedUp()){
      terminal.write("[g] ", 0, 1);
      terminal.write(item.name(), item.color(), null);
      terminal.write(" (at your feet)");
    }
View Full Code Here

Examples of iryrwarosh.Item.canBePickedUp()

            return rhs;
          break;
        case KeyEvent.VK_G:
        case KeyEvent.VK_COMMA:
          Item item = world.item(player.position.x, player.position.y);
            if (item == null || !item.canBePickedUp()) {
                MessageBus.publish(new Note(world, player, "Nothing to pick up here"));
                return this; //Don't spend an action when nothing to pick up
            } else {
                return new PickupItemScreen(this, world, player);
            }
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.