Package games.stendhal.client.entity

Examples of games.stendhal.client.entity.Sheep


   */
  @Override
  protected void buildActions(final List<String> list) {
    super.buildActions(list);
    User user = User.get();
    Sheep sheep = (Sheep) entity;

    if (user != null) {
      if (!user.hasSheep()) {
        list.add(ActionType.OWN.getRepresentation());
      } else if ((sheep != null) && (user.getSheepID() == sheep.getID()
          .getObjectID())) {
        list.add(ActionType.LEAVE_SHEEP.getRepresentation());
      }
    }
  }
View Full Code Here

TOP

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

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.