// body_parts.js
(function () {
/* global adventurejs A */
var p = adventurejs.Dictionary.prototype;
/**
* Ask whether the body parts lookup contains
* the specified word.
* @memberOf adventurejs.Dictionary
* @method adventurejs.Dictionary#hasCommonWord
* @param {string} word The word to look up, ie "zoo".
* @returns {boolean}
*/
p.hasBodyPart = function Dictionary_hasBodyPart(word) {
return this.body_parts.includes(word);
};
/**
* Body parts is a group of words that may not exist in the
* game, but which a player could reasonably be expected to
* use in relation to a character, for which we may want to
* return a more informative message than
* "I don't know the word x." Authors can provide
* their own lists of common words, or set the list to empty,
* through the use of
* <code>MyGame.dictionary.set({ body_parts: ["foo", "bar"] });</code>
* @var {Object} adventurejs.Dictionary#body_parts
*/
p.body_parts = [
"ankle",
"ankles",
"arm",
"armpit",
"armpits",
"arms",
"back",
"bone",
"bones",
"breath",
"claw",
"claws",
"chest",
"crotch",
"ear",
"ears",
"elbow",
"elbows",
"eye",
"eyes",
"face",
"feet",
"finger",
"fingernail",
"fingernails",
"fingers",
"foot",
"groin",
"hair",
"hairs",
"hand",
"hands",
"head",
"heart",
"knee",
"knees",
"laugh",
"leg",
"legs",
"mouth",
"nail",
"nails",
"neck",
"nose",
"palm",
"palms",
"pore",
"pores",
"pulse",
"scar",
"shadow",
"shoulder",
"shoulders",
"skin",
"spine",
"teeth",
"toe",
"toenail",
"toenails",
"toes",
"tongue",
"tooth",
"torso",
"trunk",
"voice",
"vertebrae",
"wrist",
"wrists",
];
})();