diff options
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/flooritem.cpp | 7 | ||||
-rw-r--r-- | src/being/flooritem.h | 2 |
2 files changed, 9 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]; +} diff --git a/src/being/flooritem.h b/src/being/flooritem.h index cedcaf96e..bb57039e1 100644 --- a/src/being/flooritem.h +++ b/src/being/flooritem.h @@ -116,6 +116,8 @@ class FloorItem final : public ActorSprite void setCards(const int *const cards, int sz); + int getCard(const int index) const; + int getRefine() const A_WARN_UNUSED { return mRefine; } |