Home | nevrax.com |
|
interpret_message_action.hGo 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 #ifndef NL_INTERPRET_MESSAGE_ACTION_H 00025 #define NL_INTERPRET_MESSAGE_ACTION_H 00026 #include "nel/ai/script/interpret_object_message.h" 00027 00028 namespace NLAISCRIPT 00029 { 00030 class CSuccessMsgClass : public CMessageClass 00031 { 00032 public: 00033 static const NLAIC::CIdentType IdSuccessMsgClass; 00034 public: 00035 CSuccessMsgClass(const NLAIAGENT::IVarName &); 00036 CSuccessMsgClass(const NLAIC::CIdentType &); 00037 CSuccessMsgClass(); 00038 virtual ~CSuccessMsgClass(){} 00039 00041 00042 virtual const NLAIC::IBasicType *clone() const; 00043 virtual const NLAIC::IBasicType *newInstance() const; 00044 virtual const NLAIC::CIdentType &getType() const 00045 { 00046 return IdSuccessMsgClass; 00047 } 00048 virtual NLAIAGENT::IObjectIA *buildNewInstance() const; 00050 }; 00051 00052 class CFailureMsgClass : public CMessageClass 00053 { 00054 public: 00055 static const NLAIC::CIdentType IdFailureMsgClass; 00056 public: 00057 CFailureMsgClass(const NLAIAGENT::IVarName &); 00058 CFailureMsgClass(const NLAIC::CIdentType &); 00059 CFailureMsgClass(); 00060 virtual ~CFailureMsgClass(){} 00061 00063 00064 virtual const NLAIC::IBasicType *clone() const; 00065 virtual const NLAIC::IBasicType *newInstance() const; 00066 virtual const NLAIC::CIdentType &getType() const 00067 { 00068 return IdFailureMsgClass; 00069 } 00070 virtual NLAIAGENT::IObjectIA *buildNewInstance() const; 00072 }; 00073 } 00074 #endif |