summaryrefslogtreecommitdiff
path: root/src/being/flooritem.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-17 19:04:48 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-17 19:19:58 +0300
commitae651b87a1db4131733eaccc5736a287a06a0e6b (patch)
treea8ace476dd6daaf037692825120cb07714b0689f /src/being/flooritem.cpp
parent55cbf74cbe2c40b4592e72621e40f8858fc376d9 (diff)
downloadplus-ae651b87a1db4131733eaccc5736a287a06a0e6b.tar.gz
plus-ae651b87a1db4131733eaccc5736a287a06a0e6b.tar.bz2
plus-ae651b87a1db4131733eaccc5736a287a06a0e6b.tar.xz
plus-ae651b87a1db4131733eaccc5736a287a06a0e6b.zip
Add support for add from context menu into chat item links with cards.
Diffstat (limited to 'src/being/flooritem.cpp')
-rw-r--r--src/being/flooritem.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/being/flooritem.cpp b/src/being/flooritem.cpp
index ae10a57aa..d0d0bf259 100644
--- a/src/being/flooritem.cpp
+++ b/src/being/flooritem.cpp
@@ -197,3 +197,10 @@ void FloorItem::draw(Graphics *const graphics,
}
BLOCK_END("FloorItem::draw")
}
+
+int FloorItem::getCard(const int index) const
+{
+ if (index < 0 || index >= maxCards)
+ return 0;
+ return mCards[index];
+}