Home | nevrax.com |
|
interpret_message_getvalue.cppGo to the documentation of this file.00001 00006 /* Copyright, 2000 Nevrax Ltd. 00007 * 00008 * This file is part of NEVRAX NEL. 00009 * NEVRAX NEL is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2, or (at your option) 00012 * any later version. 00013 00014 * NEVRAX NEL is distributed in the hope that it will be useful, but 00015 * WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 * General Public License for more details. 00018 00019 * You should have received a copy of the GNU General Public License 00020 * along with NEVRAX NEL; see the file COPYING. If not, write to the 00021 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, 00022 * MA 02111-1307, USA. 00023 */ 00024 00025 #include "nel/ai/agent/msg_getvalue.h" 00026 #include "nel/ai/c/registry_class.h" 00027 #include "nel/ai/agent/message_script.h" 00028 #include "nel/ai/script/lexsupport.h" 00029 #include "nel/ai/script/interpret_message_getvalue.h" 00030 00031 00032 namespace NLAISCRIPT 00033 { 00034 CGetValueMsgClass::CGetValueMsgClass(const NLAIAGENT::IVarName &s):CMessageClass(s) 00035 { 00036 setBaseObjectInstance((NLAIAGENT::IObjectIA *)NLAIAGENT::CGetValueMsg::IdGetValueMsg.getFactory()->getClass()); 00037 setInheritanceName(NLAIAGENT::CStringVarName("Message")); 00038 setClassName(NLAIAGENT::CStringVarName("CGetValueMsgClass")); 00039 buildVTable(); 00040 } 00041 00042 CGetValueMsgClass::CGetValueMsgClass(const NLAIC::CIdentType &id):CMessageClass(id) 00043 { 00044 setBaseObjectInstance((NLAIAGENT::IObjectIA *)NLAIAGENT::CGetValueMsg::IdGetValueMsg.getFactory()->getClass()); 00045 setInheritanceName(NLAIAGENT::CStringVarName("Message")); 00046 setClassName(NLAIAGENT::CStringVarName("CGetValueMsgClass")); 00047 buildVTable(); 00048 } 00049 00050 CGetValueMsgClass::CGetValueMsgClass() : CMessageClass() 00051 { 00052 setBaseObjectInstance((NLAIAGENT::IObjectIA *)NLAIAGENT::CGetValueMsg::IdGetValueMsg.getFactory()->getClass()); 00053 setInheritanceName(NLAIAGENT::CStringVarName("Message")); 00054 setClassName(NLAIAGENT::CStringVarName("CGetValueMsgClass")); 00055 buildVTable(); 00056 } 00057 00058 const NLAIC::IBasicType *CGetValueMsgClass::clone() const 00059 { 00060 return new CGetValueMsgClass(); 00061 } 00062 00063 const NLAIC::IBasicType *CGetValueMsgClass::newInstance() const 00064 { 00065 return new CGetValueMsgClass(); 00066 } 00067 00068 NLAIAGENT::IObjectIA *CGetValueMsgClass::buildNewInstance() const 00069 { 00070 std::list<NLAIAGENT::IObjectIA *> components; 00071 createBaseClassComponents( components ); 00072 00073 NLAIAGENT::IObjectIA *x = new NLAIAGENT::CGetValueMsg( components, (CMessageClass *) this ); 00074 return x; 00075 } 00076 } // NLAISCRIPT |