CEL: Crystal Entity Layer: physicallayer/entitytpl.h Source File (CEL: Crystal Entity Layer Public API Reference)

| ## Public API Reference

- Main Page
- Classes
- Files

# 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 };
    00075
    00076 SCF_VERSION (iCelPropertyClassTemplate, 0, 0, 1);
    00077
    00082 struct iCelPropertyClassTemplate : public iBase
    00083 {
    00087   virtual void SetName (const char* name) = 0;
    00088
    00092   virtual const char* GetName () const = 0;
    00093
    00100   virtual void SetTag (const char* tagname) = 0;
    00101
    00106   virtual const char* GetTag () const = 0;
    00107
    00112   virtual void SetPropertyVariable (csStringID propertyID, celDataType type,
    00113         const char* varname) = 0;
    00114
    00128   virtual void SetProperty (csStringID propertyID, long value) = 0;
    00129
    00133   virtual void SetProperty (csStringID propertyID, float value) = 0;
    00134
    00138   virtual void SetProperty (csStringID propertyID, bool value) = 0;
    00139
    00143   virtual void SetProperty (csStringID propertyID, const char* value) = 0;
    00144
    00148   virtual void SetProperty (csStringID propertyID, const csVector2& value) = 0;
    00149
    00153   virtual void SetProperty (csStringID propertyID, const csVector3& value) = 0;
    00154
    00158   virtual void SetProperty (csStringID propertyID, const csColor& value) = 0;
    00159
    00163   virtual void SetProperty (csStringID propertyID,
    00164         iCelPropertyClass* value) = 0;
    00165
    00169   virtual void SetProperty (csStringID propertyID, iCelEntity* entity) = 0;
    00170
    00175   virtual void PerformAction (csStringID actionID,
    00176         iCelParameterBlock* params) = 0;
    00177 };
    00178
    00179 #endif // __CEL_PL_ENTITYTEMP__
    00180