Resolve "Toggle Free Look with Hotkey"
[ryzomcore.git] / ryzom / server / src / ai_service / ai_keywords.h
blob2ce141767d275abd2a767461faa3a0ddd3c42e16
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef RYAI_KEYWORDS_H
21 #define RYAI_KEYWORDS_H
23 #include "keyword.h"
25 class CAIKeywords
27 public:
28 static void init();
29 static void updateKeywordsFromCfg();
30 static void display();
32 static bool botMask(const std::string &word, CKeywordMask &result) { return _botKeywords.stringToMask(word, result); }
33 static bool groupMask(const std::string &word, CKeywordMask &result) { return _groupKeywords.stringToMask(word, result); }
34 static bool stateMask(const std::string &word, CKeywordMask &result) { return _stateKeywords.stringToMask(word, result); }
36 static bool botFilter(const std::string &word, CKeywordFilter &result) { return _botKeywords.stringToFilter(word, result); }
37 static bool groupFilter(const std::string &word, CKeywordFilter &result) { return _groupKeywords.stringToFilter(word, result); }
38 static bool stateFilter(const std::string &word, CKeywordFilter &result) { return _stateKeywords.stringToFilter(word, result); }
40 private:
41 static CKeywordSet _botKeywords;
42 static CKeywordSet _groupKeywords;
43 static CKeywordSet _stateKeywords;
45 private:
46 // this is a singleton so prohibit construction
47 CAIKeywords();
48 };
50 #endif