diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-05-19 21:40:56 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-05-19 21:40:56 +0200 |
commit | 42c36429d7cd1e6c3f879b6749e18e912deefe0d (patch) | |
tree | cd6f9a0ddf88a738596018311702d19d07fc0b5c /src/CompositeChat.cpp | |
parent | Merge pull request #1010 from mc-server/cactidamage (diff) | |
download | cuberite-42c36429d7cd1e6c3f879b6749e18e912deefe0d.tar cuberite-42c36429d7cd1e6c3f879b6749e18e912deefe0d.tar.gz cuberite-42c36429d7cd1e6c3f879b6749e18e912deefe0d.tar.bz2 cuberite-42c36429d7cd1e6c3f879b6749e18e912deefe0d.tar.lz cuberite-42c36429d7cd1e6c3f879b6749e18e912deefe0d.tar.xz cuberite-42c36429d7cd1e6c3f879b6749e18e912deefe0d.tar.zst cuberite-42c36429d7cd1e6c3f879b6749e18e912deefe0d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/CompositeChat.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/CompositeChat.cpp b/src/CompositeChat.cpp index c70ef1070..d3b7595b7 100644 --- a/src/CompositeChat.cpp +++ b/src/CompositeChat.cpp @@ -189,6 +189,15 @@ void cCompositeChat::AddSuggestCommandPart(const AString & a_Text, const AString +void cCompositeChat::AddShowAchievementPart(const AString & a_PlayerName, const AString & a_Achievement, const AString & a_Style) +{ + m_Parts.push_back(new cShowAchievementPart(a_PlayerName, a_Achievement, a_Style)); +} + + + + + void cCompositeChat::ParseText(const AString & a_ParseText) { size_t len = a_ParseText.length(); @@ -476,3 +485,16 @@ cCompositeChat::cSuggestCommandPart::cSuggestCommandPart(const AString & a_Text, + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// cCompositeChat::cShowAchievementPart: + +cCompositeChat::cShowAchievementPart::cShowAchievementPart(const AString & a_PlayerName, const AString & a_Achievement, const AString & a_Style) : + super(ptShowAchievement, a_Achievement, a_Style), + m_PlayerName(a_PlayerName) +{ +} + + + + |