Class GuardNPC.InJailCondition

java.lang.Object
games.stendhal.server.maps.semos.jail.GuardNPC.InJailCondition
All Implemented Interfaces:
ChatCondition, PreTransitionCondition
Enclosing class:
GuardNPC

public static class GuardNPC.InJailCondition extends Object implements ChatCondition
Is the player speaking to us in jail?
  • Constructor Details

    • InJailCondition

      public InJailCondition()
  • Method Details

    • fire

      public boolean fire(Player player, Sentence sentence, Entity entity)
      Description copied from interface: PreTransitionCondition
      can the transition be done?
      Specified by:
      fire in interface ChatCondition
      Specified by:
      fire in interface PreTransitionCondition
      Parameters:
      player - player who caused the transition
      sentence - text he/she said
      entity - the NPC doing the transition
      Returns:
      true, if the transition is possible, false otherwise