Class RagdollPreset.LexiconEntry

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Integer>
com.jme3.bullet.control.ragdoll.RagdollPreset.LexiconEntry
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Integer>
Enclosing class:
RagdollPreset

protected class RagdollPreset.LexiconEntry extends HashMap<String,Integer>
One entry in a bone lexicon.
See Also:
  • Constructor Details

    • LexiconEntry

      protected LexiconEntry()
  • Method Details

    • addSynonym

      public void addSynonym(String word, int score)
      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

      public int getScore(String word)
      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