Class BetManager.NoBetCondition

java.lang.Object
games.stendhal.server.script.BetManager.NoBetCondition
All Implemented Interfaces:
ChatCondition, PreTransitionCondition
Enclosing class:
BetManager

protected class BetManager.NoBetCondition extends Object implements ChatCondition
Do we NOT accept bets at the moment?
  • Constructor Details

    • NoBetCondition

      protected NoBetCondition()
  • 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