diff options
Diffstat (limited to 'src/resources/beinginfo.cpp')
-rw-r--r-- | src/resources/beinginfo.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/resources/beinginfo.cpp b/src/resources/beinginfo.cpp index d27339483..0cd311554 100644 --- a/src/resources/beinginfo.cpp +++ b/src/resources/beinginfo.cpp @@ -58,6 +58,7 @@ BeingInfo::BeingInfo() : mSounds(), mAttacks(), mMenu(), + mStrings(), mBlockWalkMask(BlockMask::WALL | BlockMask::AIR | BlockMask::WATER), @@ -239,3 +240,11 @@ const std::vector<BeingMenuItem> &BeingInfo::getMenu() const { return mMenu; } + +std::string BeingInfo::getString(const int idx) const +{ + const std::map<int, std::string>::const_iterator it = mStrings.find(idx); + if (it == mStrings.end()) + return ""; + return (*it).second; +} |