Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members
zone.h
00001 /* 00002 Crystal Space Entity Layer 00003 Copyright (C) 2004 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_PF_ZONE__ 00021 #define __CEL_PF_ZONE__ 00022 00023 #include "cstypes.h" 00024 #include "csgeom/vector3.h" 00025 #include "csutil/scf.h" 00026 00027 struct iSector; 00028 struct iPcCamera; 00029 struct iPcMesh; 00030 struct iCelEntity; 00031 struct iStringArray; 00032 struct iString; 00033 struct iDocumentNode; 00034 00035 SCF_VERSION (iCelMapFile, 0, 1, 0); 00036 00040 struct iCelMapFile : public iBase 00041 { 00047 virtual void SetPath (const char* path) = 0; 00048 00053 virtual void SetFile (const char* file) = 0; 00054 00059 virtual const char* GetPath () const = 0; 00060 00065 virtual const char* GetFile () const = 0; 00066 00073 virtual void SetSectorName (const char* name) = 0; 00074 00079 virtual const char* GetSectorName () const = 0; 00080 }; 00081 00082 SCF_VERSION (iCelRegion, 0, 1, 1); 00083 00088 struct iCelRegion : public iBase 00089 { 00091 virtual const char* GetName () const = 0; 00092 00100 virtual void SetCachePath (const char* path) = 0; 00101 00106 virtual const char* GetCachePath () const = 0; 00107 00112 virtual iCelMapFile* CreateMapFile () = 0; 00113 00117 virtual size_t GetMapFileCount () const = 0; 00118 00122 virtual iCelMapFile* GetMapFile (int idx) const = 0; 00123 00128 virtual bool RemoveMapFile (iCelMapFile* mapfile) = 0; 00129 00133 virtual void RemoveAllMapFiles () = 0; 00134 00139 virtual void AssociateEntity (iCelEntity* entity) = 0; 00140 }; 00141 00142 SCF_VERSION (iCelZone, 0, 1, 0); 00143 00148 struct iCelZone : public iBase 00149 { 00151 virtual const char* GetName () const = 0; 00152 00156 virtual void LinkRegion (iCelRegion* region) = 0; 00157 00161 virtual size_t GetRegionCount () const = 0; 00162 00166 virtual iCelRegion* GetRegion (size_t idx) const = 0; 00167 00171 virtual iCelRegion* FindRegion (const char* name) const = 0; 00172 00177 virtual bool UnlinkRegion (iCelRegion* region) = 0; 00178 00182 virtual void UnlinkAllRegions () = 0; 00183 }; 00184 00188 00189 #define CEL_ZONEERROR_OK 0 00190 00192 #define CEL_ZONEERROR_BADREGION 1 00193 00195 #define CEL_ZONEERROR_BADSTART 2 00196 00198 #define CEL_ZONEERROR_LOAD 3 00199 00201 SCF_VERSION (iPcZoneManager, 0, 1, 1); 00202 00236 struct iPcZoneManager : public iBase 00237 { 00243 virtual void EnableColliderWrappers (bool en) = 0; 00244 00248 virtual bool IsColliderWrappers () const = 0; 00249 00256 virtual bool Load (iDocumentNode* node) = 0; 00257 00270 virtual bool Load (const char* path, const char* file) = 0; 00271 00275 virtual iCelZone* CreateZone (const char* name) = 0; 00276 00280 virtual size_t GetZoneCount () const = 0; 00281 00285 virtual iCelZone* GetZone (int idx) const = 0; 00286 00290 virtual iCelZone* FindZone (const char* name) const = 0; 00291 00296 virtual bool RemoveZone (iCelZone* zone) = 0; 00297 00301 virtual void RemoveAllZones () = 0; 00302 00306 virtual iCelRegion* CreateRegion (const char* name) = 0; 00307 00311 virtual size_t GetRegionCount () const = 0; 00312 00316 virtual iCelRegion* GetRegion (int idx) const = 0; 00317 00321 virtual iCelRegion* FindRegion (const char* name) const = 0; 00322 00327 virtual bool RemoveRegion (iCelRegion* region) = 0; 00328 00332 virtual void RemoveAllRegions () = 0; 00333 00337 virtual void FindStartLocations (iStringArray* regionnames, 00338 iStringArray* startnames) = 0; 00339 00345 virtual void GetLastStartLocation (iString* regionname, 00346 iString* startname) = 0; 00347 00365 virtual int PointCamera (const char* entity, const char* regionname, 00366 const char* startname = 0) = 0; 00367 00385 virtual int PointMesh (const char* entity, const char* regionname, 00386 const char* startname = 0) = 0; 00387 }; 00388 00389 #endif // __CEL_PF_ZONE__ 00390
Generated for CEL: Crystal Entity Layer by doxygen 1.4.4