summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.cpp18
-rw-r--r--src/Entities/Player.h6
2 files changed, 24 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index 94398c258..c0a078bcb 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -1828,6 +1828,24 @@ AString cPlayer::GetColor(void) const
+AString cPlayer::GetPrefix(void) const
+{
+ return m_MsgPrefix;
+}
+
+
+
+
+
+AString cPlayer::GetSuffix(void) const
+{
+ return m_MsgSuffix;
+}
+
+
+
+
+
AString cPlayer::GetPlayerListName(void) const
{
const AString & Color = GetColor();
diff --git a/src/Entities/Player.h b/src/Entities/Player.h
index 02f187e31..d25432e9f 100644
--- a/src/Entities/Player.h
+++ b/src/Entities/Player.h
@@ -285,6 +285,12 @@ public:
The returned value either is empty, or includes the cChatColor::Delimiter. */
AString GetColor(void) const;
+ /** Returns the player name prefix, may contain @ format directives */
+ AString GetPrefix(void) const;
+
+ /** Returns the player name suffix, may contain @ format directives */
+ AString GetSuffix(void) const;
+
/** Returns the name that is used in the playerlist. */
AString GetPlayerListName(void) const;