LogicalVerifyResultclass | verify.t[170] |
Superclass Tree | Subclass Tree | Global Objects | Property Summary | Method Summary | Property Details | Method Details |
This can provide additional information ranking the likelihood of the command intepretation, which can be useful to distinguish among logical but not equally likely possibilities. For example, if the command is "take book," and the actor has a book inside his or her backpack, and there is also a book on a table in the actor's location, it would make sense to take either book, but the game might prefer to take the book on the table because it's not already being carried. The likelihood level can be used to rank these alternatives: if the object is being carried indirectly, a lower likelihood ranking would be returned than if the object were not already somewhere in the actor's inventory.
class
LogicalVerifyResult : VerifyResult
LogicalVerifyResult
VerifyResult
MessageResult
object
keyVal
likelihood
listOrder
resultRank
Inherited from VerifyResult
:
allowAction
excludePluralMatches
Inherited from MessageResult
:
messageProp_
messageText_
compareTo
construct
identicalTo
isWorseThan
shouldInsertBefore
Inherited from MessageResult
:
resolveMessageText
setMessage
showMessage
keyVal | verify.t[281] |
likelihood | verify.t[249] |
listOrder | verify.t[275] |
The list ordering is more important than the likelihood ranking. Suppose we have two items: one is at list order 10 and has likelihood 100, and the other is at list order 20 and has likelihood 50. The order of the likelihoods stored in the list will be (100, 50). This is inverted from the normal ordering, which would put the worst item first.
The point of this ordering is to allow for logical results with higher or lower importances in establishing the likelihood. The library uses the following list order values:
100 - the default ranking. This is used in most cases.
150 - secondary ranking. This is used for rankings that aren't of great importance but which can be useful to distinguish objects in cases where no more important rankings are present. The library uses this for precondition verification rankings.
resultRank OVERRIDDEN | verify.t[284] |
compareTo (other) OVERRIDDEN | verify.t[198] |
construct (likelihoodRank, key, ord) OVERRIDDEN | verify.t[171] |
identicalTo (other) OVERRIDDEN | verify.t[233] |
isWorseThan (other) OVERRIDDEN | verify.t[184] |
shouldInsertBefore (other) OVERRIDDEN | verify.t[215] |