Class PlayingCTFCondition

java.lang.Object
games.stendhal.server.maps.quests.captureflag.PlayingCTFCondition
All Implemented Interfaces:
ChatCondition, PreTransitionCondition

public class PlayingCTFCondition extends Object implements ChatCondition
  • Constructor Details

    • PlayingCTFCondition

      public PlayingCTFCondition()
  • Method Details

    • fire

      public boolean fire(Player player, Sentence sentence, Entity npc)
      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
      npc - the NPC doing the transition
      Returns:
      true, if the transition is possible, false otherwise