Class SetHallOfFameToAgeDiffAction
java.lang.Object
games.stendhal.server.entity.npc.action.SetHallOfFameToAgeDiffAction
- All Implemented Interfaces:
ChatAction,PostTransitionAction
@Dev(category=IGNORE,
label="State")
public class SetHallOfFameToAgeDiffAction
extends Object
implements ChatAction
Write the difference between the players current age and the one stored in the quest slot
to the hall of fame database table.
-
Constructor Summary
ConstructorsConstructorDescriptionSetHallOfFameToAgeDiffAction(String questname, int index, String fametype)Creates a new SetHallOfFameToAgeDiffAction.SetHallOfFameToAgeDiffAction(String questname, String fametype)Creates a new SetHallOfFameToAgeDiffAction. -
Method Summary
-
Constructor Details
-
SetHallOfFameToAgeDiffAction
Creates a new SetHallOfFameToAgeDiffAction.- Parameters:
questname- name of quest-slot to read the original age fromfametype- the type in the hall of fame
-
SetHallOfFameToAgeDiffAction
Creates a new SetHallOfFameToAgeDiffAction.- Parameters:
questname- name of quest-slot to read the original age fromindex- index of sub state containing the age at start of the questfametype- the type in the hall of fame
-
-
Method Details
-
fire
Description copied from interface:PostTransitionActiondoes some action after a transition.- Specified by:
firein interfaceChatAction- Specified by:
firein interfacePostTransitionAction- Parameters:
player- player who caused the transitionsentence- text he/she saidraiser- the NPC doing the transition
-
toString
-
hashCode
public int hashCode() -
equals
-