Examples of WalkToPointEvent


Examples of org.moparscape.msc.gs.event.WalkToPointEvent

    } catch (Exception e) {
      e.printStackTrace();
    }
    int distance = blocked ? 1 : 0;
    Instance.getDelayedEventHandler().add(
        new WalkToPointEvent(player, location, distance, true) {
          public void arrived() {
            if (owner.isBusy() || owner.isRanging()
                || !tile.hasItem(item) || !owner.nextTo(item)
                || owner.getStatus() != Action.TAKING_GITEM) {
              return;
View Full Code Here

Examples of org.moparscape.msc.gs.event.WalkToPointEvent

          + "] at: "
          + player.getX() + "/" + player.getY()));

      player.setStatus(Action.USING_INVITEM_ON_GITEM);
      Instance.getDelayedEventHandler().add(
          new WalkToPointEvent(player, location, 1, false) {
            public void arrived() {
              if (owner.isBusy()
                  || owner.isRanging()
                  || !tile.hasItem(item)
                  || !owner.nextTo(item)
View Full Code Here

Examples of org.moparscape.msc.gs.event.WalkToPointEvent

          + object.getID()
          + ") at: " + player.getX() + "/" + player.getY()));
     
      player.setStatus(Action.USING_DOOR);
      Instance.getDelayedEventHandler()
          .add(new WalkToPointEvent(player, object.getLocation(), 1,
              false) {
            public void arrived() {
              owner.resetPath();
              DoorDef def = object.getDoorDef();
              if (owner.isBusy() || owner.isRanging()
View Full Code Here

Examples of org.moparscape.msc.gs.event.WalkToPointEvent

  private void handleItemCast(Player player, final SpellDef spell,
      final int id, final Item affectedItem) {
    player.setStatus(Action.CASTING_GITEM);
    Instance.getDelayedEventHandler().add(
        new WalkToPointEvent(player, affectedItem.getLocation(), 5,
            true) {
          public void arrived() {
            owner.resetPath();
            ActiveTile tile = world.getTile(location);
            if (!canCast(owner) || !tile.hasItem(affectedItem)
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.