Class Behaviour
java.lang.Object
games.stendhal.common.grammar.ItemParser
games.stendhal.server.entity.npc.behaviour.impl.Behaviour
- Direct Known Subclasses:
TransactionBehaviour
Behaviour is the base class for all quest behaviours parsing a sentence to
get an amount and an item name.
- Author:
- Martin Fuchs
-
Field Summary
Fields inherited from class games.stendhal.common.grammar.ItemParser
itemNames
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiona chat action that is executed in case transaction are not possiblea chat condition that checks whether transactions are possible at allMethods inherited from class games.stendhal.common.grammar.ItemParser
getErrormessage, getItemNames, parse
-
Constructor Details
-
Behaviour
public Behaviour() -
Behaviour
-
Behaviour
-
-
Method Details
-
getTransactionCondition
a chat condition that checks whether transactions are possible at all- Returns:
- ChatCondition
-
getRejectedTransactionAction
a chat action that is executed in case transaction are not possible- Returns:
- ChatAction
-