00001 /*************************************************************************** 00002 entity.h - Base class for objects processing input 00003 ------------------- 00004 begin : Mon Sep 11 2003 00005 copyright : (C) 2003 by Reality Rift Studios 00006 email : mattias@realityrift.com 00007 *************************************************************************** 00008 00009 The contents of this file are subject to the Mozilla Public License Version 00010 1.1 (the "License"); you may not use this file except in compliance with 00011 the License. You may obtain a copy of the License at 00012 http://www.mozilla.org/MPL/ 00013 00014 Software distributed under the License is distributed on an "AS IS" basis, 00015 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 00016 for the specific language governing rights and limitations under the 00017 License. 00018 00019 The Original Code is the NeoEngine, entity.h 00020 00021 The Initial Developer of the Original Code is Mattias Jansson. 00022 Portions created by Mattias Jansson are Copyright (C) 2003 00023 Reality Rift Studios. All Rights Reserved. 00024 00025 ***************************************************************************/ 00026 00027 00028 #ifndef __NEINPUTENTITY_H 00029 #define __NEINPUTENTITY_H 00030 00031 00038 #include "base.h" 00039 #include "activator.h" 00040 00041 #include <string> 00042 00043 00044 namespace NeoEngine 00045 { 00046 00047 00048 //External classes 00049 class InputGroup; 00050 class InputEvent; 00051 00052 00065 class NEOENGINE_API InputEntity : public virtual Activator 00066 { 00067 protected: 00068 00070 InputGroup *m_pkGroup; 00071 00072 00073 public: 00074 00079 InputEntity( InputGroup *pkGroup ); 00080 00084 virtual ~InputEntity(); 00085 00090 void AttachToGroup( InputGroup *pkGroup ); 00091 00096 virtual void Input( const InputEvent *pkEvent ) = 0; 00097 }; 00098 00099 00100 }; // namespace NeoEngine 00101 00102 00103 #endif