1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This source file has been modified by the following contributors:
5 // Copyright (C) 2013 Jan BOON (Kaetemi) <jan.boon@kaetemi.be>
7 // This program is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU Affero General Public License as
9 // published by the Free Software Foundation, either version 3 of the
10 // License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU Affero General Public License for more details.
17 // You should have received a copy of the GNU Affero General Public License
18 // along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #ifndef RYAI_SPAWN_COMMANDS_H
23 #define RYAI_SPAWN_COMMANDS_H
25 #include "nel/misc/types_nl.h"
26 #include "nel/misc/debug.h"
34 // static bool spawn (const std::string &name, int aiInstance=-1) { nlassert(_instance!=NULL); return _instance->_spawn(aiInstance, name); }
35 // static bool spawnMap (const std::string &name, int aiInstance=-1) { nlassert(_instance!=NULL); return _instance->_spawnMap(aiInstance, name); }
36 // static bool spawnMgr (const std::string &name, int aiInstance=-1) { nlassert(_instance!=NULL); return _instance->_spawnMgr(aiInstance, name); }
37 // static bool spawnGrp (const std::string &name, int aiInstance=-1) { nlassert(_instance!=NULL); return _instance->_spawnGrp(aiInstance, name); }
38 // static bool spawnAll (int aiInstance=-1) { nlassert(_instance!=NULL); return _instance->_spawnAll(aiInstance); }
40 // static bool despawn (const std::string &name, int aiInstance=-1) { nlassert(_instance!=NULL); return _instance->_despawn(aiInstance, name); }
41 // static bool despawnMap (const std::string &name, int aiInstance=-1) { nlassert(_instance!=NULL); return _instance->_despawnMap(aiInstance, name); }
42 // static bool despawnMgr (const std::string &name, int aiInstance=-1) { nlassert(_instance!=NULL); return _instance->_despawnMgr(aiInstance, name); }
43 // static bool despawnGrp (const std::string &name, int aiInstance=-1) { nlassert(_instance!=NULL); return _instance->_despawnGrp(aiInstance, name); }
44 // static bool despawnAll (int aiInstance=-1) { nlassert(_instance!=NULL); return _instance->_despawnAll(aiInstance); }
47 // virtual bool _spawn (int aiInstance, const std::string &name)=0;
48 // virtual bool _spawnMap (int aiInstance, const std::string &name)=0;
49 // virtual bool _spawnMgr (int aiInstance, const std::string &name)=0;
50 // virtual bool _spawnGrp (int aiInstance, const std::string &name)=0;
51 // virtual bool _spawnAll (int aiInstance)=0;
53 // virtual bool _despawn (int aiInstance, const std::string &name)=0;
54 // virtual bool _despawnMap (int aiInstance, const std::string &name)=0;
55 // virtual bool _despawnMgr (int aiInstance, const std::string &name)=0;
56 // virtual bool _despawnGrp (int aiInstance, const std::string &name)=0;
57 // virtual bool _despawnAll (int aiInstance)=0;
59 // static CAISpawnCtrl *_instance;