Resolve "Toggle Free Look with Hotkey"
[ryzomcore.git] / ryzom / server / src / sabrina / sabrina_phrase_manager.h
blobfa709ec5ae3959b369f9ced463c092055d6d4714
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/>.
19 #ifndef RY_SABRINA_PHRASE_MANAGER_H
20 #define RY_SABRINA_PHRASE_MANAGER_H
22 // stl
23 #include <vector>
24 // misc
25 #include "nel/misc/types_nl.h"
26 // sabrina
27 #include "sabrina_phrase_instance.h"
28 #include "sabrina_pointers.h"
31 /**
32 * The Sabrina phrase manager singleton
33 * \author David Fleury
34 * \author Nevrax France
35 * \date 2003
37 class CSabrinaPhraseManager
39 public:
40 // singleton init - called in service init
41 static void init();
43 // update called each tick in service update
44 // updates phrases and dispatches events to AI
45 static void update();
47 // singleton release - called in service release
48 static void release();
50 // activate a phrase & setup the next event time (time should be >=0 and <256)
51 static void setNextPhraseEvent(CSabrinaPhraseInstance* phrase,NLMISC::TGameCycle nextEventTime);
53 private:
54 // this is a singleton so prohibit construction
55 CSabrinaPhraseManager();
57 typedef std::vector<CSabrinaPhraseInstancePtr> TPhraseVector;
58 static TPhraseVector _PhraseVectors[256];
62 #endif