summaryrefslogtreecommitdiffstats
path: root/src/Item.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Item.h')
-rw-r--r--src/Item.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Item.h b/src/Item.h
index a94f35176..306e36b0a 100644
--- a/src/Item.h
+++ b/src/Item.h
@@ -20,6 +20,7 @@
// fwd:
class cItemHandler;
+class cItemGrid;
class cColor;
namespace Json
@@ -234,6 +235,15 @@ class cItems // tolua_export
: public std::vector<cItem>
{ // tolua_export
public:
+
+ cItems(const cItems &) = default;
+ cItems(cItems &&) = default;
+ cItems & operator = (const cItems &) = default;
+ cItems & operator = (cItems &&) = default;
+
+ /** Constructs a new instance containing the specified item. */
+ cItems(cItem && a_InitialItem);
+
// tolua_begin
/** Need a Lua-accessible constructor */
@@ -254,6 +264,9 @@ public:
push_back(cItem(a_ItemType, a_ItemCount, a_ItemDamage));
}
+ /** Adds a copy of all items in a_ItemGrid. */
+ void AddItemGrid(const cItemGrid & a_ItemGrid);
+
// tolua_end
} ; // tolua_export