Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members
inv.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_PF_INV__ 00021 #define __CEL_PF_INV__ 00022 00023 #include "cstypes.h" 00024 #include "csutil/scf.h" 00025 00026 struct iCelEntity; 00027 struct iPcInventory; 00028 00032 struct iPcInventoryListener : public virtual iBase 00033 { 00034 SCF_INTERFACE (iPcInventoryListener, 0, 0, 1); 00035 00039 virtual void AddChild (iPcInventory* inventory, iCelEntity* entity) = 0; 00040 00044 virtual void RemoveChild (iPcInventory* inventory, iCelEntity* entity) = 0; 00045 }; 00046 00060 struct iPcInventory : public virtual iBase 00061 { 00062 SCF_INTERFACE (iPcInventory, 0, 0, 1); 00063 00068 virtual void AddInventoryListener (iPcInventoryListener* listener) = 0; 00072 virtual void RemoveInventoryListener (iPcInventoryListener* listener) = 0; 00073 00080 virtual bool AddEntity (iCelEntity* entity) = 0; 00081 00086 virtual bool RemoveEntity (iCelEntity* entity) = 0; 00087 00095 virtual bool RemoveAll () = 0; 00096 00100 virtual size_t GetEntityCount () const = 0; 00101 00105 virtual iCelEntity* GetEntity (size_t idx) const = 0; 00106 00117 virtual bool SetStrictCharacteristics (const char* charName, bool strict) = 0; 00118 00122 virtual bool HasStrictCharacteristics (const char* charName) const = 0; 00123 00132 virtual bool SetConstraints (const char* charName, 00133 float minValue, float maxValue, float totalMaxValue) = 0; 00134 00139 virtual bool GetConstraints (const char* charName, 00140 float& minValue, float& maxValue, float& totalMaxValue) const = 0; 00141 00145 virtual void RemoveConstraints (const char* charName) = 0; 00146 00150 virtual void RemoveAllConstraints () = 0; 00151 00155 virtual float GetCurrentCharacteristic (const char* charName) const = 0; 00156 00163 virtual void MarkDirty (const char* charName) = 0; 00164 00170 virtual bool TestConstraints (const char* charName) = 0; 00171 00176 virtual void Dump () = 0; 00177 }; 00178 00179 #endif // __CEL_PF_INV__ 00180
Generated for CEL: Crystal Entity Layer by doxygen 1.4.4