Add infos into target window
[ryzomcore.git] / ryzom / server / src / ai_data_service / aids_actions.h
blob9f843ebd7b17f1925d4afdf8551449c8453bb284
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 RYAI_AIDS_ACTIONS_H
20 #define RYAI_AIDS_ACTIONS_H
22 #include "ai_share/ai_actions.h"
23 #include "ai_manager.h"
24 #include <vector>
26 class CAIDSActions: public CAIActions::IExecutor
28 public:
29 //----------------------------------------------------------------------------
30 // init & release
32 static void init()
34 if (Instance==NULL)
35 Instance=new CAIDSActions;
36 CAIActions::init(Instance);
38 static void release()
40 if (Instance!=NULL)
42 CAIActions::release();
43 delete Instance;
44 Instance=NULL;
48 //----------------------------------------------------------------------------
49 // inheritted virtual interface
51 virtual void openFile(const std::string &fileName);
52 virtual void closeFile(const std::string &fileName);
53 virtual void begin(const std::string &contextName);
54 virtual void end(const std::string &contextName);
55 virtual void execute(uint64 action,const std::vector <CAIActions::CArg> &args);
57 virtual void begin(uint32 context) {}
58 virtual void end(uint32 context) {}
60 //----------------------------------------------------------------------------
61 // public singleton data
63 static uint CurrentManager;
65 private:
66 //----------------------------------------------------------------------------
67 // This is a singleton class so make constructor private
68 CAIDSActions() {}
69 ~CAIDSActions() {}
71 //----------------------------------------------------------------------------
72 // the singleton class instance
73 static CAIDSActions *Instance;
77 #endif