Package games.stendhal.client.entity

Examples of games.stendhal.client.entity.Corpse


  }

  @Override
  public StendhalCursor getCursor() {
    StendhalCursor cursor = super.getCursor();
    Corpse corpse = (Corpse) entity;

    // server override?
    if ((cursor != StendhalCursor.UNKNOWN) || (corpse == null)) {
      return cursor;
    }

    // empty?
    if (corpse.getContent().size() == 0) {
      return StendhalCursor.EMPTY_BAG;
    }

    // owner
    if ((corpse.getCorpseOwner() == null) || corpse.getCorpseOwner().equals(User.getCharacterName())) {
      return StendhalCursor.BAG;
    }
    if (User.isGroupSharingLoot() && User.isPlayerInGroup(corpse.getCorpseOwner())) {
      return StendhalCursor.BAG;
    }
    return StendhalCursor.LOCKED_BAG;
  }
View Full Code Here


    // be auto inspected anyway
    if (!autoOpenedAlready && inspector != null) {
      autoOpenedAlready = true;
      boolean autoRaiseCorpse = Boolean.parseBoolean(WtWindowManager.getInstance().getProperty("gamescreen.autoinspectcorpses", "true"));
      if (autoRaiseCorpse) {
        Corpse corpse = (Corpse) entity;
        if ((corpse.getCorpseOwner() != null) && corpse.getCorpseOwner().equals(User.getCharacterName()) && !corpse.isEmpty()) {
          onAction(ActionType.INSPECT);
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of games.stendhal.client.entity.Corpse

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.