Uses of Class
games.stendhal.common.parser.Sentence
Package
Description
implements the NPC conversation parser.
This package contains conditions frequently used in quests.
Deathmatch: Actions for SpeakerNPCs and internal handling.
Interactive scripts that high level admins can invoke.
-
Uses of Sentence in games.stendhal.common.grammar
Modifier and TypeMethodDescriptionSearch for a matching name in the available names. -
Uses of Sentence in games.stendhal.common.parser
Modifier and TypeClassDescriptionclass
SentenceImplementation contains the implementation details of building Sentence objects.Modifier and TypeMethodDescriptionstatic Sentence
Parse function without conversation context.static Sentence
ConversationParser.parse(String text, ConversationContext ctx)
Parse the given text sentence.static Sentence
ConversationParser.parse(String text, ConversationContext ctx, ExpressionMatcher matcher)
Parse the given text sentence using an ConversationContext and an explicit Expression matcher.static Sentence
ConversationParser.parse(String text, ExpressionMatcher matcher)
Parse the given text sentence using an explicit Expression matcher.Sentence.parse(ConversationContext ctx)
Parse the sentence again, using the given conversation context.static Sentence
ConversationParser.parseAsMatcher(String text)
Parse the given text sentence to be used for sentence matching.static Sentence
ConversationParser.parseAsMatchingSource(String text)
Parse the given text sentence to be used as matching source.Sentence.parseAsMatchingSource()
Return a parsed sentence object to be used as source in matching.Modifier and TypeMethodDescriptionstatic String
ConversationParser.detectSentenceType(String text, Sentence sentence)
Evaluates and sets sentence type by looking at the trailing punctuation characters.Sentence.diffNormalized(Sentence other)
Compare two sentences and return the difference as String.boolean
Sentence.equalsNormalized(Sentence other)
Check if two Sentences consist of identical normalized Expressions.boolean
Sentence.matchesFull(Sentence other)
Check if the Sentence completely matches the given Sentence.boolean
Sentence.matchesStart(Sentence other)
Check if the Sentence start matches the given Sentence. -
Uses of Sentence in games.stendhal.server.core.rp.achievement.condition
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
-
Uses of Sentence in games.stendhal.server.entity.npc
-
Uses of Sentence in games.stendhal.server.entity.npc.action
Modifier and TypeMethodDescriptionvoid
AddItemToCollectionAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
ChangePlayerOutfitAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
ChangePlayerOutfitAndPreserveTempAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
CollectRequestedItemsAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
ComplainAboutSentenceErrorAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
CreateSlotAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
DecreaseKarmaAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
DisableFeatureAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
DropInfostringItemAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
DropItemAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
DropRecordedItemAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
EnableFeatureAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
EquipItemAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
EquipRandomAmountOfItemAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
EquipRandomItemAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
ExamineChatAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
IncreaseItemExchangeAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
IncreaseKarmaAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
IncreaseXPAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
IncreaseXPDependentOnLevelAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
IncrementQuestAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
InflictStatusOnNPCAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
JailAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
ListProducedItemDetailAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
ListProducedItemsOfClassAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
LoadSignFromHallOfFameAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
MultipleActions.fire(Player player, Sentence sentence, EventRaiser npc)
void
NPCEmoteAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
NPCSetDirection.fire(Player player, Sentence sentence, EventRaiser npc)
void
OutputQuestSlotAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
PlaySoundAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
RemoveStorableEntityAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
ResetBlockChatAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
SayNPCNamesForUnstartedQuestsAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
SayRequiredItemAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
SayRequiredItemsFromCollectionAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
SayTextAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
SayTimeRemainingAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
SayTimeRemainingUntilTimeReachedAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
SayUnstartedQuestDescriptionFromNPCNameAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
SendPrivateMessageAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
SetHallOfFameToAgeDiffAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
SetQuestAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
SetQuestAndModifyKarmaAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
SetQuestToFutureRandomTimeStampAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
SetQuestToPlayerAgeAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
SetQuestToTimeStampAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
SetQuestToYearAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
StartItemsCollectionWithLimitAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
StartRecordingKillsAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
StartRecordingRandomItemCollectionAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
StoreMessageAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
TeleportAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
BehaviourAction.fireRequestError(ItemParserResult res, Player player, Sentence sentence, EventRaiser npc)
void
MultiProducerBehaviourAction.fireRequestError(ItemParserResult res, Player player, Sentence sentence, EventRaiser raiser)
void
ProducerBehaviourAction.fireRequestError(ItemParserResult res, Player player, Sentence sentence, EventRaiser raiser)
void
RepairingBehaviourAction.fireRequestError(ItemParserResult res, Player player, Sentence sentence, EventRaiser npc)
void
RepairingBehaviourAction.fireRequestOK(ItemParserResult res, Player player, Sentence sentence, EventRaiser npc)
-
Uses of Sentence in games.stendhal.server.entity.npc.condition
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
return true if player have killed proper creature numbers.boolean
return true if player have killed proper sum of creatures.boolean
return true if player need update, or if required update was unsuccessful.boolean
boolean
boolean
Does the checking for number of creatures killedboolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
-
Uses of Sentence in games.stendhal.server.entity.npc.fsm
Modifier and TypeMethodDescriptionvoid
PostTransitionAction.fire(Player player, Sentence sentence, EventRaiser raiser)
does some action after a transition.boolean
can the transition be done?boolean
Transition.isConditionFulfilled(Player player, Sentence sentence, SpeakerNPC npc)
Checks whether this transition's condition is fulfilled.boolean
MatchType.match(Transition transition, ConversationStates currentState, Sentence sentence)
boolean
Transition.matches(ConversationStates currentState, Sentence sentence)
Checks whether this transition is possible now.boolean
Transition.matchesNormalized(ConversationStates state, Sentence sentence)
Checks whether this transition is possible now by using matching of the normalized expression.boolean
Transition.matchesSimilar(ConversationStates state, Sentence sentence)
Checks whether this transition is possible now by checking the similarity of the normalized expression.boolean
Transition.matchesWild(Sentence sentence)
Checks whether this is a "wildcard" transition (see class comment of SpeakerNPC) which can be fired by the given text.boolean
Transition.matchesWildNormalized(Sentence sentence)
Checks whether this is a "wildcard" transition (see class comment of SpeakerNPC) and the normalized text matches the trigger.boolean
Transition.matchesWildSimilar(Sentence sentence)
Checks whether this is a "wildcard" transition (see class comment of SpeakerNPC) and the normalized text is similar to the trigger.boolean
Do one transition of the finite state machine. -
Uses of Sentence in games.stendhal.server.maps.deathmatch
Modifier and TypeMethodDescriptionvoid
BailAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
DoneAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
LeaveAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
StartAction.fire(Player player, Sentence sentence, EventRaiser raiser)
-
Uses of Sentence in games.stendhal.server.maps.quests
-
Uses of Sentence in games.stendhal.server.maps.quests.captureflag
Modifier and TypeMethodDescriptionvoid
JoinCaptureFlagAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
LeaveCaptureFlagAction.fire(Player player, Sentence sentence, EventRaiser npc)
boolean
void
ProvideArrowsAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
ProvideCTFFlagsAction.fire(Player player, Sentence sentence, EventRaiser npc)
-
Uses of Sentence in games.stendhal.server.maps.quests.piedpiper
-
Uses of Sentence in games.stendhal.server.maps.quests.revivalweeks
Modifier and TypeMethodDescriptionvoid
PhotographerChatAction.fire(Player player, Sentence sentence, EventRaiser npc)
-
Uses of Sentence in games.stendhal.server.maps.semos.jail
-
Uses of Sentence in games.stendhal.server.maps.semos.tavern.market
Modifier and TypeMethodDescriptionvoid
ExamineOfferChatAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
FetchEarningsChatAction.fire(Player player, Sentence sentence, EventRaiser npc)
boolean
void
ProlongOfferHandler.ConfirmProlongOfferChatAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
ProlongOfferHandler.ProlongOfferChatAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
RemoveOfferHandler.ConfirmRemoveOfferChatAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
RemoveOfferHandler.RemoveOfferChatAction.fire(Player player, Sentence sentence, EventRaiser npc)
void
ShowOfferItemsChatAction.fire(Player player, Sentence sentence, EventRaiser npc)
show a list of all items for which offers exist.void
ShowOffersChatAction.fire(Player player, Sentence sentence, EventRaiser npc)
protected Integer
KnownOffersChatAction.getOfferNumberFromSentence(Sentence sentence)
-
Uses of Sentence in games.stendhal.server.script
Modifier and TypeMethodDescriptionvoid
AdminMaker.TeleportAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
AdminMaker.UpgradeAction.fire(Player player, Sentence sentence, EventRaiser raiser)
void
BetManager.BetAction.fire(Player player, Sentence sentence, EventRaiser raiser)
boolean
boolean
void
Debuggera.SightseeingAction.fire(Player player, Sentence sentence, EventRaiser raiser)