diff options
author | madmaxoft <github@xoft.cz> | 2013-10-20 14:00:45 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-10-20 14:00:45 +0200 |
commit | 6075f7cecd7c1a1f283c98eb0feeb746402a7c00 (patch) | |
tree | 2721948dd7d5308d96ddf380a1e2540caa50b55b /source/Mobs/Monster.h | |
parent | Fixed binary search in StringToMobType(). (diff) | |
download | cuberite-6075f7cecd7c1a1f283c98eb0feeb746402a7c00.tar cuberite-6075f7cecd7c1a1f283c98eb0feeb746402a7c00.tar.gz cuberite-6075f7cecd7c1a1f283c98eb0feeb746402a7c00.tar.bz2 cuberite-6075f7cecd7c1a1f283c98eb0feeb746402a7c00.tar.lz cuberite-6075f7cecd7c1a1f283c98eb0feeb746402a7c00.tar.xz cuberite-6075f7cecd7c1a1f283c98eb0feeb746402a7c00.tar.zst cuberite-6075f7cecd7c1a1f283c98eb0feeb746402a7c00.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Mobs/Monster.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/Mobs/Monster.h b/source/Mobs/Monster.h index 3b7f40c00..14c72ed73 100644 --- a/source/Mobs/Monster.h +++ b/source/Mobs/Monster.h @@ -146,6 +146,9 @@ public: /// Returns the mob family based on the type static eFamily FamilyFromType(eType a_MobType); + /// Returns the spawn rate (number of game ticks between spawn attempts) for the given mob family + static int GetSpawnRate(cMonster::eFamily a_MobFamily); + // tolua_end /** Creates a new object of the specified mob. |