Package com.jme3.bullet.control.ragdoll
Class RagdollPreset.LexiconEntry
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
Integer>
- Enclosing class:
- RagdollPreset
One entry in a bone lexicon.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSynonym
(String word, int score) Add a synonym with the specified score.int
Calculate a total score for the specified bone name.Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
LexiconEntry
protected LexiconEntry()
-
-
Method Details
-
addSynonym
Add a synonym with the specified score.- Parameters:
word
- a substring that might occur in a bone name (not null)score
- larger value means more likely to correspond
-
getScore
Calculate a total score for the specified bone name.- Parameters:
word
- the name of a bone (not null)- Returns:
- total score: larger value means more likely to correspond
-