Package games.stendhal.client.gui.j2d.entity

Examples of games.stendhal.client.gui.j2d.entity.Entity2DView


   *
   * @param entity dragged entity
   */
  public void startDrag(IEntity entity) {
    if (entity != null) {
      Entity2DView dragged = (Entity2DView) EntityViewFactory.create(entity);
      /*
       * Make it contained, so that the view knows to ignore the entity
       * coordinates
       */
      dragged.setContained(true);
      /*
       * Hide quantity until it can be made context sensitive to drag
       * modifiers.
       */
      if (dragged instanceof StackableItem2DView) {
View Full Code Here


   *            A view.
   */
  private void addEntityView(final EntityView view) {
    views.add(view);
    if (view instanceof Entity2DView) {
      final Entity2DView inspectable = (Entity2DView) view;
     
      inspectable.setInspector(ground);
   
  }
View Full Code Here

TOP

Related Classes of games.stendhal.client.gui.j2d.entity.Entity2DView

Copyright © 2018 www.massapicom. 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.