Package games.stendhal.client.entity

Examples of games.stendhal.client.entity.Pet


   */
  @Override
  protected void buildActions(final List<String> list) {
    super.buildActions(list);
    User user = User.get();
    Pet pet = (Pet) entity;
    if (user != null) {
      if (!user.hasPet()) {
        list.add(ActionType.OWN.getRepresentation());
      } else if ((pet != null) && (user.getPetID() == pet.getID().getObjectID())) {
        list.add(ActionType.LEAVE_PET.getRepresentation());
      }
    }
  }
View Full Code Here

TOP

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

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.