Class LeaveCaptureFlagAction

java.lang.Object
games.stendhal.server.maps.quests.captureflag.LeaveCaptureFlagAction
All Implemented Interfaces:
ChatAction, PostTransitionAction

public class LeaveCaptureFlagAction extends Object implements ChatAction
leave a game of CTF (remove the tag uselistener
Author:
hendrik, sjtsp
  • Constructor Details

    • LeaveCaptureFlagAction

      public LeaveCaptureFlagAction()
  • Method Details

    • dropAllCTFItems

      public void dropAllCTFItems(Player player)
      drop anything the player is carrying that is ctf-related TODO: probably goes elsewhere - more general support class
      Parameters:
      player - player whose items should be dropped
    • fire

      public void fire(Player player, Sentence sentence, EventRaiser npc)
      Description copied from interface: PostTransitionAction
      does some action after a transition.
      Specified by:
      fire in interface ChatAction
      Specified by:
      fire in interface PostTransitionAction
      Parameters:
      player - player who caused the transition
      sentence - text he/she said
      npc - the NPC doing the transition