physicallayer/entitytpl.h
00001 /* 00002 Crystal Space Entity Layer 00003 Copyright (C) 2005 by Jorrit Tyberghein 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public 00016 License along with this library; if not, write to the Free 00017 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 */ 00019 00020 #ifndef __CEL_PL_ENTITYTEMP__ 00021 #define __CEL_PL_ENTITYTEMP__ 00022 00023 #include "cstypes.h" 00024 #include "csutil/scf.h" 00025 #include "csutil/strset.h" 00026 #include "csgeom/vector2.h" 00027 #include "csgeom/vector3.h" 00028 #include "csutil/cscolor.h" 00029 00030 #include "physicallayer/datatype.h" 00031 00032 struct iCelEntity; 00033 struct iCelPropertyClassTemplate; 00034 struct iCelPropertyClass; 00035 struct iCelParameterBlock; 00036 00037 SCF_VERSION (iCelEntityTemplate, 0, 0, 1); 00038 00042 struct iCelEntityTemplate : public iBase 00043 { 00048 virtual iObject* QueryObject () = 0; 00049 00054 virtual const char* GetName () const = 0; 00055 00060 virtual void SetName (const char* n) = 0; 00061 00065 virtual iCelPropertyClassTemplate* CreatePropertyClassTemplate () = 0; 00066 00073 virtual void SetBehaviour (const char* layer, const char* behaviour) = 0; 00074 00078 virtual const char* GetBehaviourLayer () const = 0; 00079 00083 virtual const char* GetBehaviour () const = 0; 00084 00090 virtual void AddMessage (const char* msgid, iCelParameterBlock* params) = 0; 00091 }; 00092 00093 SCF_VERSION (iCelPropertyClassTemplate, 0, 0, 1); 00094 00099 struct iCelPropertyClassTemplate : public iBase 00100 { 00104 virtual void SetName (const char* name) = 0; 00105 00109 virtual const char* GetName () const = 0; 00110 00117 virtual void SetTag (const char* tagname) = 0; 00118 00123 virtual const char* GetTag () const = 0; 00124 00129 virtual void SetPropertyVariable (csStringID propertyID, celDataType type, 00130 const char* varname) = 0; 00131 00145 virtual void SetProperty (csStringID propertyID, long value) = 0; 00146 00150 virtual void SetProperty (csStringID propertyID, float value) = 0; 00151 00155 virtual void SetProperty (csStringID propertyID, bool value) = 0; 00156 00160 virtual void SetProperty (csStringID propertyID, const char* value) = 0; 00161 00165 virtual void SetProperty (csStringID propertyID, const csVector2& value) = 0; 00166 00170 virtual void SetProperty (csStringID propertyID, const csVector3& value) = 0; 00171 00175 virtual void SetProperty (csStringID propertyID, const csColor& value) = 0; 00176 00180 virtual void SetProperty (csStringID propertyID, 00181 iCelPropertyClass* value) = 0; 00182 00186 virtual void SetProperty (csStringID propertyID, iCelEntity* entity) = 0; 00187 00192 virtual void PerformAction (csStringID actionID, 00193 iCelParameterBlock* params) = 0; 00194 }; 00195 00196 #endif // __CEL_PL_ENTITYTEMP__ 00197
Generated for CEL: Crystal Entity Layer by doxygen 1.4.6