Class QuestRegisteredCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.QuestRegisteredCondition
- All Implemented Interfaces:
ChatCondition
,PreTransitionCondition
Checks if a quest is registered in the world.
-
Constructor Summary
ConstructorDescriptionQuestRegisteredCondition(String questSlot)
Creates a new QuestRegisteredCondition using a quest slot.QuestRegisteredCondition(String questSlot, boolean isSlotName)
Creates a new QuestRegisteredCondition using either a quest slot or name. -
Method Summary
-
Constructor Details
-
QuestRegisteredCondition
Creates a new QuestRegisteredCondition using a quest slot.- Parameters:
questSlot
- Slot string.
-
QuestRegisteredCondition
Creates a new QuestRegisteredCondition using either a quest slot or name.- Parameters:
questSlot
- Slot or name string.isSlotName
- Iftrue
, checks against registered quests' slot strings, otherwise checks against their name string.
-
-
Method Details
-
fire
Description copied from interface:PreTransitionCondition
can the transition be done?- Specified by:
fire
in interfaceChatCondition
- Specified by:
fire
in interfacePreTransitionCondition
- Parameters:
player
- player who caused the transitionsentence
- text he/she saidnpc
- the NPC doing the transition- Returns:
- true, if the transition is possible, false otherwise
-
toString
-
hashCode
public int hashCode() -
equals
-