Added ai command setEquipment
[ryzomcore.git] / ryzom / server / src / ai_service / gpms_interface.h
blob65d818a43905b220fb9c33b25e5cf177f8c99b27
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/>.
18 #pragma message "Deprecated, don't use !"
21 #ifndef RYAI_GPMS_INTERFACE_H
22 #define RYAI_GPMS_INTERFACE_H
24 // Include
25 #include "nel/net/unified_network.h"
26 #include "nel/misc/types_nl.h"
27 #include "nel/misc/entity_id.h"
28 #include "nel/misc/sheet_id.h"
30 //#include "ai_entity_id.h"
31 #include "ai_pos.h"
34 // the class
35 class CGPMSInterface
37 public:
38 // classic init(), update() and release()
39 static void init();
40 static void update();
41 static void release();
43 // add bots to the world, remove them from the world or move them
44 static void addEntity(const NLMISC::CEntityId &eid,const CAIPos &pos, NLMISC::CSheetId sheet);
45 static void removeEntity(const NLMISC::CEntityId &eid);
46 static void updateEntityPos(const NLMISC::CEntityId &eid,const CAIPos &pos);
48 // add invisible 'vision' entities to the world, remove them from the world or move them
49 static void addVisionEntity(const NLMISC::CEntityId &eid,const CAIPos &pos);
50 static void removeVisionEntity(const NLMISC::CEntityId &eid);
51 static void updateVisionEntityPos(const NLMISC::CEntityId &eid,const CAIPos &pos);
53 // mounting and dismounting from horseback
54 static void attachEntityToParent();
55 static void detachEntityFromParent();
57 private:
58 // messages that are filled up by the above static methods
59 // messages are dispatched when a threshold size is reached
60 // the messages are also flushed by update()
61 static NLNET::CMessage _updateEntityPosMsg;
62 static bool _positionUpdates;
65 #endif