summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.h
diff options
context:
space:
mode:
authorandrew <xdotftw@gmail.com>2014-05-12 16:05:09 +0200
committerandrew <xdotftw@gmail.com>2014-05-12 16:05:09 +0200
commitb3d2b5b2c94193fd9364b26293b7d96b748ff96d (patch)
tree215519ba96caea0269641209452661b8bd6e14da /src/Entities/Player.h
parentFixed compilation (diff)
downloadcuberite-b3d2b5b2c94193fd9364b26293b7d96b748ff96d.tar
cuberite-b3d2b5b2c94193fd9364b26293b7d96b748ff96d.tar.gz
cuberite-b3d2b5b2c94193fd9364b26293b7d96b748ff96d.tar.bz2
cuberite-b3d2b5b2c94193fd9364b26293b7d96b748ff96d.tar.lz
cuberite-b3d2b5b2c94193fd9364b26293b7d96b748ff96d.tar.xz
cuberite-b3d2b5b2c94193fd9364b26293b7d96b748ff96d.tar.zst
cuberite-b3d2b5b2c94193fd9364b26293b7d96b748ff96d.zip
Diffstat (limited to 'src/Entities/Player.h')
-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