diff options
author | andrew <xdotftw@gmail.com> | 2014-05-12 16:05:09 +0200 |
---|---|---|
committer | andrew <xdotftw@gmail.com> | 2014-05-12 16:05:09 +0200 |
commit | b3d2b5b2c94193fd9364b26293b7d96b748ff96d (patch) | |
tree | 215519ba96caea0269641209452661b8bd6e14da /src/Entities/Player.h | |
parent | Fixed compilation (diff) | |
download | cuberite-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 '')
-rw-r--r-- | src/Entities/Player.h | 11 |
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 |