Class MultipleActions
java.lang.Object
games.stendhal.server.entity.npc.action.MultipleActions
- All Implemented Interfaces:
ChatAction
,PostTransitionAction
executes a list of actions in the order they have been added.
It calls fire() of each action added, when its own
fire() is called.
-
Constructor Summary
ConstructorDescriptionMultipleActions(ChatAction... action)
Creates a new MultipleActions.MultipleActions(List<ChatAction> actions)
Creates a new MultipleActions. -
Method Summary
-
Constructor Details
-
MultipleActions
Creates a new MultipleActions.- Parameters:
action
- action to execute
-
MultipleActions
Creates a new MultipleActions.- Parameters:
actions
- list of actions to execute
-
-
Method Details
-
fire
Description copied from interface:PostTransitionAction
does some action after a transition.- Specified by:
fire
in interfaceChatAction
- Specified by:
fire
in interfacePostTransitionAction
- Parameters:
player
- player who caused the transitionsentence
- text he/she saidnpc
- the NPC doing the transition
-
toString
-
hashCode
public int hashCode() -
equals
-