Class CreatureProtectionArea.Entry

java.lang.Object
games.stendhal.server.entity.mapstuff.area.CreatureProtectionArea.Entry
Enclosing class:
CreatureProtectionArea

protected static class CreatureProtectionArea.Entry extends Object
An entry representing creature criteria.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
    Whether it should be blocked.
    protected String
    The creature class to match.
    protected String
    The creature subclass to match.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Entry​(String clazz, String subclazz, boolean blocked)
    Create a criteria entry.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Determine if a creature matching this criteria is blocked.
    boolean
    matches​(String clazz, String subclazz)
    Check if a class/subclass matches.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • blocked

      protected boolean blocked
      Whether it should be blocked.
    • clazz

      protected String clazz
      The creature class to match.
    • subclazz

      protected String subclazz
      The creature subclass to match.
  • Constructor Details

    • Entry

      public Entry(String clazz, String subclazz, boolean blocked)
      Create a criteria entry.
      Parameters:
      clazz - A creature class to match (or null for any).
      subclazz - A creature subclass to match (or null for any).
      blocked - Whether it should be blocked.
  • Method Details

    • isBlocked

      public boolean isBlocked()
      Determine if a creature matching this criteria is blocked.
      Returns:
      true if it should be blocked.
    • matches

      public boolean matches(String clazz, String subclazz)
      Check if a class/subclass matches.
      Parameters:
      clazz -
      subclazz -
      Returns:
      true if both are equals to fields