Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members
entity.h
00001 /* 00002 Crystal Space Entity Layer 00003 Copyright (C) 2001 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_ENTITY__ 00021 #define __CEL_PL_ENTITY__ 00022 00023 #include "cstypes.h" 00024 #include "csutil/scf.h" 00025 00026 struct iCelPropertyClassList; 00027 struct iCelBehaviour; 00028 struct iObject; 00029 00030 SCF_VERSION (iCelEntity, 0, 0, 1); 00031 00043 struct iCelEntity : public iBase 00044 { 00050 virtual iObject* QueryObject () = 0; 00051 00056 virtual const char* GetName () const = 0; 00057 00062 virtual void SetName (const char* n) = 0; 00063 00068 virtual uint GetID () const = 0; 00069 00076 virtual void SetID (uint n) = 0; 00077 00083 virtual iCelPropertyClassList* GetPropertyClassList () = 0; 00084 00090 virtual void SetBehaviour (iCelBehaviour* behaviour) = 0; 00091 00097 virtual iCelBehaviour* GetBehaviour () = 0; 00098 }; 00099 00100 SCF_VERSION (iCelEntityList, 0, 0, 1); 00101 00110 struct iCelEntityList : public iBase 00111 { 00117 virtual size_t GetCount () const = 0; 00118 00127 virtual iCelEntity* Get (size_t n) const = 0; 00128 00137 virtual size_t Add (iCelEntity* obj) = 0; 00138 00147 virtual bool Remove (iCelEntity* obj) = 0; 00148 00157 virtual bool Remove (size_t n) = 0; 00158 00164 virtual void RemoveAll () = 0; 00165 00174 virtual size_t Find (iCelEntity* obj) const = 0; 00175 00184 virtual iCelEntity* FindByName (const char *Name) const = 0; 00185 }; 00186 00187 #endif // __CEL_PL_ENTITY__ 00188
Generated for CEL: Crystal Entity Layer by doxygen 1.4.4