summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h
index 82a138290..b5c9d75cc 100644
--- a/src/Entities/Player.h
+++ b/src/Entities/Player.h
@@ -179,6 +179,15 @@ public:
/** Return the associated statistic and achievement manager. */
cStatManager & GetStatManager() { return m_Stats; }
+
+ /** Awards the player an achievement.
+ *
+ * If all prerequisites are met, this method will award the achievement and will broadcast a chat message.
+ * If the achievement has been already awarded to the player, this method will just increment the stat counter.
+ *
+ * Returns the _new_ stat value. (0 = Could not award achievement)
+ */
+ unsigned int AwardAchievement(const eStatistic a_Ach);
void SetIP(const AString & a_IP);
@@ -311,6 +320,8 @@ public:
void AbortEating(void);
virtual void KilledBy(cEntity * a_Killer) override;
+
+ virtual void Killed(cEntity * a_Victim) override;
void Respawn(void); // tolua_export