Lines Matching refs:prefixes

34 static string __try_exact_string(const vector<string> &prefixes,  in __try_exact_string()  argument
50 const int size = prefixes.size(); in __try_exact_string()
53 if (prefixes[i] == "hostile") in __try_exact_string()
59 else if (prefixes[i] == "related") in __try_exact_string()
65 else if (prefixes[i] == "silenced") in __try_exact_string()
71 else if (prefixes[i] == "Beogh" || prefixes[i] == "good god" in __try_exact_string()
72 || prefixes[i] == "No God" in __try_exact_string()
73 || (str_to_god(prefixes[i]) != GOD_NO_GOD in __try_exact_string()
74 && prefixes[i] != "random")) in __try_exact_string()
80 else if (branch_by_abbrevname(prefixes[i]) != NUM_BRANCHES) in __try_exact_string()
86 prefix += prefixes[i]; in __try_exact_string()
94 msg = __try_exact_string(prefixes, key, true); in __try_exact_string()
98 msg = __try_exact_string(prefixes, key, true, false, false, true); in __try_exact_string()
101 msg = __try_exact_string(prefixes, key, true, false, true, in __try_exact_string()
105 msg = __try_exact_string(prefixes, key, true, true); in __try_exact_string()
110 msg = __try_exact_string(prefixes, key, true, true, false, true); in __try_exact_string()
112 msg = __try_exact_string(prefixes, key, true, true, true); in __try_exact_string()
115 msg = __try_exact_string(prefixes, key, true, true, true, true); in __try_exact_string()
119 msg = __try_exact_string(prefixes, key, true, true, true, true, true); in __try_exact_string()
165 static string _try_exact_string(const vector<string> &prefixes, in _try_exact_string() argument
180 __try_exact_string(prefixes, key, ignore_hostile, ignore_related, in _try_exact_string()
208 static string __get_speak_string(const vector<string> &prefixes, in __get_speak_string() argument
214 string msg = _try_exact_string(prefixes, key, no_player, no_foe, in __get_speak_string()
221 const int size = prefixes.size(); in __get_speak_string()
229 prefix = prefixes[i] + " "; in __get_speak_string()
230 prefix += prefixes[j] + " "; in __get_speak_string()
231 prefix += prefixes[k] + " "; in __get_speak_string()
246 prefix = prefixes[i] + " "; in __get_speak_string()
247 prefix += prefixes[j] + " "; in __get_speak_string()
261 prefix = prefixes[i] + " "; in __get_speak_string()
276 static string _get_speak_string(const vector<string> &prefixes, in _get_speak_string() argument
305 __get_speak_string(prefixes, key, no_player, no_foe, in _get_speak_string()
466 vector<string> prefixes; in mons_speaks() local
472 prefixes.emplace_back("neutral"); in mons_speaks()
475 prefixes.emplace_back("friendly"); in mons_speaks()
477 prefixes.emplace_back("hostile"); in mons_speaks()
480 prefixes.emplace_back("fleeing"); in mons_speaks()
486 prefixes.emplace_back("silenced"); in mons_speaks()
490 prefixes.emplace_back("confused"); in mons_speaks()
494 prefixes.push_back(mons->props["speech_prefix"].get_string()); in mons_speaks()
504 prefixes.emplace_back("related"); // maybe overkill for Beogh? in mons_speaks()
511 prefixes.emplace_back("related"); in mons_speaks()
527 prefixes.emplace_back("Beogh"); in mons_speaks()
529 prefixes.emplace_back("unbeliever"); in mons_speaks()
537 prefixes.push_back(god_name(mons->ghost->religion)); in mons_speaks()
544 prefixes.emplace_back("good god"); in mons_speaks()
546 prefixes.push_back(god_name(you.religion)); in mons_speaks()
551 prefixes.emplace_back(branches[you.where_are_you].abbrevname); in mons_speaks()
555 prefixes.emplace_back("orb"); in mons_speaks()
560 const int size = prefixes.size(); in mons_speaks()
563 prefix += prefixes[i]; in mons_speaks()
591 vector<string> with_skill = prefixes; in mons_speaks()
599 msg = _get_speak_string(prefixes, "player ghost", mons, in mons_speaks()
608 msg = _get_speak_string(prefixes, "pandemonium lord", mons, in mons_speaks()
616 msg = _get_speak_string(prefixes, in mons_speaks()
639 msg = _get_speak_string(prefixes, mons->name(DESC_PLAIN), in mons_speaks()
646 msg = _get_speak_string(prefixes, mons->base_name(DESC_PLAIN), in mons_speaks()
656 msg = _get_speak_string(prefixes, in mons_speaks()
677 prefixes.insert(prefixes.begin(), "stationary"); in mons_speaks()
691 msg = _get_speak_string(prefixes, key, mons, no_player, no_foe, in mons_speaks()
704 prefixes.insert(prefixes.begin(), "stupid"); in mons_speaks()
709 msg = _get_speak_string(prefixes, get_mon_shape_str(shape), mons, in mons_speaks()
731 msg = _get_speak_string(prefixes, in mons_speaks()
740 msg2 = _get_speak_string(prefixes, in mons_speaks()
762 msg = _get_speak_string(prefixes, in mons_speaks()