Class StartRecordingKillsAction
java.lang.Object
games.stendhal.server.entity.npc.action.StartRecordingKillsAction
- All Implemented Interfaces:
ChatAction
,PostTransitionAction
@Dev(category=KILLS,
label="State")
public class StartRecordingKillsAction
extends Object
implements ChatAction
Starts the recording of kills.
- Author:
- hendrik
- See Also:
KilledForQuestCondition
,KilledInSumForQuestCondition
-
Constructor Summary
ConstructorDescriptionStartRecordingKillsAction(String questSlot, int index, RequiredKillsInfo... requiredKills)
Creates a new StartRecordingKillsAction.StartRecordingKillsAction(String questSlot, int index, String creature, int requiredSolo, int requiredShared)
Creates a new StartRecordingKillsAction.Creates a new StartRecordingKillsAction. -
Method Summary
-
Constructor Details
-
StartRecordingKillsAction
public StartRecordingKillsAction(String questSlot, @Dev(defaultValue="1") int index, Map<String,Pair<Integer,Integer>> toKill)Creates a new StartRecordingKillsAction.- Parameters:
questSlot
- name of quest slotindex
- index within quest slottoKill
- creatures which should be killed by the player (name, required solo kills, required solo/shared kills)
-
StartRecordingKillsAction
@Dev public StartRecordingKillsAction(String questSlot, @Dev(defaultValue="1") int index, RequiredKillsInfo... requiredKills)Creates a new StartRecordingKillsAction.- Parameters:
questSlot
- name of quest slotindex
- index within quest slotrequiredKills
- creatures which should be killed by the player (name, required solo kills, required solo/shared kills)
-
StartRecordingKillsAction
public StartRecordingKillsAction(String questSlot, int index, String creature, int requiredSolo, int requiredShared)Creates a new StartRecordingKillsAction.- Parameters:
questSlot
- name of quest slotindex
- index within questslotcreature
- CreaturerequiredSolo
- number of creatures that have to be killed solorequiredShared
- number of creatures that may be killed with help by other players
-
-
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
-