1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
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.
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
25 #include "nel/misc/types_nl.h"
27 #include "sabrina_phrase_instance.h"
28 #include "sabrina_pointers.h"
32 * The Sabrina phrase manager singleton
33 * \author David Fleury
34 * \author Nevrax France
37 class CSabrinaPhraseManager
40 // singleton init - called in service init
43 // update called each tick in service update
44 // updates phrases and dispatches events to AI
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
);
54 // this is a singleton so prohibit construction
55 CSabrinaPhraseManager();
57 typedef std::vector
<CSabrinaPhraseInstancePtr
> TPhraseVector
;
58 static TPhraseVector _PhraseVectors
[256];