22 #ifndef ULTIMA8_WORLD_CONTAINER_H 23 #define ULTIMA8_WORLD_CONTAINER_H 25 #include "ultima/ultima8/world/item.h" 26 #include "ultima/shared/std/containers.h" 28 #include "ultima/ultima8/usecode/intrinsics.h" 29 #include "ultima/ultima8/misc/classtype.h" 44 ENABLE_RUNTIME_CLASSTYPE()
56 virtual bool addItem(
Item *item,
bool checkwghtvol =
false);
85 uint32 scriptsize,
bool recurse)
const;
115 void destroy(
bool delnow =
false)
override;
122 INTRINSIC(I_removeContents);
123 INTRINSIC(I_destroyContents);
ObjId assignObjId() override
virtual uint32 getCapacity() const
Get the container's capacity.
Item * getFirstItemWithShape(uint16 shapeno, bool recurse)
Definition: container_gump.h:37
virtual bool moveItemToEnd(Item *item)
void clearObjId() override
Clear objIDs of self and contents.
uint32 getTotalWeight() const override
Definition: detection.h:27
Common::String dumpInfo() const override
dump some info about this object to a string
Definition: paperdoll_gump.h:37
virtual bool removeItem(Item *item)
void containerSearch(UCList *itemlist, const uint8 *loopscript, uint32 scriptsize, bool recurse) const
void destroyContents()
Destroy all contents.
virtual uint32 getContentVolume() const
Get the total volume used up by the container's current contents.
virtual bool addItem(Item *item, bool checkwghtvol=false)
Definition: container.h:36
Definition: containers.h:200
void setFlagRecursively(uint32 mask) override
Set flag on container and all its contents recursively.
void getItemsWithShapeFamily(Std::vector< Item *> &itemlist, uint16 family, bool recurse)
void destroy(bool delnow=false) override
Destroy self.
Definition: containers.h:38
Definition: item_factory.h:32
virtual bool CanAddItem(Item *item, bool checkwghtvol=false)