tools/elcm.h
00001 /* 00002 Crystal Space Entity Layer 00003 Copyright (C) 2011 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_ELCM__ 00021 #define __CEL_ELCM__ 00022 00023 struct iCelEntity; 00024 struct iCelEntityIterator; 00025 00032 struct iELCMListener: public virtual iBase 00033 { 00034 SCF_INTERFACE (iELCMListener, 0, 0, 1); 00035 00039 virtual void SafeToRemove (iCelEntity* entity) = 0; 00040 }; 00041 00080 struct iELCM: public virtual iBase 00081 { 00082 SCF_INTERFACE (iELCM, 0, 0, 1); 00083 00087 virtual void DeleteAll () = 0; 00088 00093 virtual void SetPlayer (iCelEntity* entity) = 0; 00094 virtual iCelEntity* GetPlayer () const = 0; 00095 00101 virtual void SetActivityRadius (float radius) = 0; 00102 virtual float GetActivityRadius () const = 0; 00103 00108 virtual void SetDistanceThresshold (float distance) = 0; 00109 virtual float GetDistanceThresshold () const = 0; 00110 00115 virtual void SetCheckTime (csTicks t) = 0; 00116 virtual csTicks GetCheckTime () const = 0; 00117 00125 virtual void SetUnloadCheckFrequency (int c) = 0; 00126 virtual int GetUnloadCheckFrequency () const = 0; 00127 00132 virtual void SetUnloadedTime (csTicks t) = 0; 00133 virtual csTicks GetUnloadedTime () const = 0; 00134 00139 virtual void ActivateEntity (iCelEntity* entity) = 0; 00140 00145 virtual void DeactivateEntity (iCelEntity* entity) = 0; 00146 00151 virtual void AddELCMListener (iELCMListener* listener) = 0; 00152 00156 virtual void RemoveELCMListener (iELCMListener* listener) = 0; 00157 00161 virtual void Dump () = 0; 00162 00166 virtual void MarkBaseline () = 0; 00167 00172 virtual const csSet<uint>& GetDeletedEntities () const = 0; 00173 00177 virtual void RegisterDeletedEntity (uint id) = 0; 00178 00185 virtual void UnregisterDeletedEntity (uint id) = 0; 00186 00191 virtual const csSet<csPtrKey<iCelEntity> >& GetNewEntities () const = 0; 00192 00196 virtual void RegisterNewEntity (iCelEntity* ent) = 0; 00197 00206 virtual void UnregisterNewEntity (iCelEntity* ent) = 0; 00207 00212 virtual csPtr<iCelEntityIterator> GetModifiedEntities () const = 0; 00213 }; 00214 00215 #endif // __CEL_ELCM__ 00216
Generated for CEL: Crystal Entity Layer 2.1 by doxygen 1.6.1
