Home | nevrax.com |
|
msg_debug.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_debug.h" 00026 #include "nel/ai/agent/agent_digital.h" 00027 #include "nel/ai/script/interpret_object_message.h" 00028 00029 namespace NLAIAGENT 00030 { 00031 CMsgDebug::CMsgDebug( std::list<IObjectIA *> &l, NLAISCRIPT::CMessageClass *b):CMessageScript(l,b) 00032 { 00033 } 00034 CMsgDebug::CMsgDebug(NLAISCRIPT::CMessageClass *b):CMessageScript(b) 00035 { 00036 } 00037 00038 CMsgDebug::CMsgDebug(IBasicAgent *agent): 00039 CMessageScript((NLAISCRIPT::CMessageClass *)NLAISCRIPT::CMsgNotifyParentClass::IdMsgNotifyParentClass.getFactory()->getClass()) 00040 { 00041 } 00042 00043 CMsgDebug::CMsgDebug(const CMsgDebug &m): CMessageScript(m) 00044 { 00045 } 00046 00047 const NLAIC::IBasicType *CMsgDebug::clone() const 00048 { 00049 //CLocalAgentMail *g = (CLocalAgentMail *)get(); 00050 return new CMsgDebug(*this); 00051 } 00052 00053 const NLAIC::CIdentType &CMsgDebug::getType() const 00054 { 00055 if ( getCreatorClass() ) 00056 return getCreatorClass()->getType(); 00057 else 00058 return IdMsgDebug; 00059 } 00060 00061 void CMsgDebug::getDebugString(std::string &t) const 00062 { 00063 t += "CMsgDebug"; 00064 } 00065 } |