Examples of Boat


Examples of lesson2.Boat

        System.out.println();
        sampleBoxingProblem();
    }

    private static void sampleInstanceOf() {
        Boat b1 = new Boat();
        Car c1 = new Car();
        System.out.println(c1 instanceof RaceCar);
        System.out.println(c1.getClass().isInstance(b1));
        System.out.println(IWater.class.isInstance(b1));
    }
View Full Code Here

Examples of lineage2.gameserver.model.entity.boat.Boat

  {
    try
    {
      Class<?> cl = Class.forName("lineage2.gameserver.model.entity.boat." + clazz);
      Constructor<?> constructor = cl.getConstructor(Integer.TYPE, CharTemplate.class);
      Boat boat = (Boat) constructor.newInstance(IdFactory.getInstance().getNextId(), TEMPLATE);
      boat.setName(name);
      addBoat(boat);
      return boat;
    }
    catch (Exception e)
    {
View Full Code Here

Examples of lineage2.gameserver.model.entity.boat.Boat

    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    Boat boat = BoatHolder.getInstance().getBoat(_shuttleId);
    if (boat == null)
    {
      return;
    }
    boat.addPlayer(player, _loc);
  }
View Full Code Here

Examples of lineage2.gameserver.model.entity.boat.Boat

    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    Boat boat = BoatHolder.getInstance().getBoat(_objectId);
    if ((boat == null) || boat.isMoving)
    {
      player.sendActionFailed();
      return;
    }
    boat.oustPlayer(player, _location, false);
  }
View Full Code Here

Examples of lineage2.gameserver.model.entity.boat.Boat

   * Method onEvtArrived.
   */
  @Override
  protected void onEvtArrived()
  {
    Boat actor = (Boat) getActor();
    if (actor == null)
    {
      return;
    }
    actor.onEvtArrived();
  }
View Full Code Here

Examples of lineage2.gameserver.model.entity.boat.Boat

    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    Boat boat = BoatHolder.getInstance().getBoat(_boatObjectId);
    if (boat == null)
    {
      player.sendActionFailed();
      return;
    }
    boat.moveInBoat(player, _originPos, _pos);
  }
View Full Code Here

Examples of lineage2.gameserver.model.entity.boat.Boat

    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    Boat boat = BoatHolder.getInstance().getBoat(_shuttleId);
    if ((boat == null) || boat.isMoving)
    {
      player.sendActionFailed();
      return;
    }
    boat.oustPlayer(player, _location, false);
  }
View Full Code Here

Examples of lineage2.gameserver.model.entity.boat.Boat

    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    Boat boat = BoatHolder.getInstance().getBoat(_boatObjectId);
    if (boat == null)
    {
      player.sendActionFailed();
      return;
    }
    if (player.isClanAirShipDriver())
    {
      player.sendActionFailed();
      return;
    }
    boat.moveInBoat(player, _originPos, _pos);
  }
View Full Code Here

Examples of lineage2.gameserver.model.entity.boat.Boat

      if (msg != null)
      {
        player.sendPacket(msg);
        return;
      }
      Boat boat = getDockedAirShip();
      if (boat == null)
      {
        player.sendActionFailed();
        return;
      }
      if ((player.getBoat() != null) && (player.getBoat().getObjectId() != boat.getObjectId()))
      {
        player.sendPacket(SystemMsg.YOU_HAVE_ALREADY_BOARDED_ANOTHER_AIRSHIP);
        return;
      }
      player._stablePoint = player.getLoc().setH(0);
      boat.addPlayer(player, new Location());
    }
    if(command.equalsIgnoreCase("hellfireenter"))
    {
      if(player.getLevel() < 97)
      {
View Full Code Here

Examples of lineage2.gameserver.model.entity.boat.Boat

    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    Boat boat = BoatHolder.getInstance().getBoat(_objectId);
    if (boat == null)
    {
      return;
    }
    player._stablePoint = boat.getCurrentWay().getReturnLoc();
    boat.addPlayer(player, _loc);
  }
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.