summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Sheep.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-07-01 20:42:23 +0200
committerHowaner <franzi.moos@googlemail.com>2014-07-01 20:42:23 +0200
commit68007ab3e5aba33fb3a8e34c0301401aef594737 (patch)
tree6a417348f6ba22ebf66cb1ce301350e293855654 /src/Mobs/Sheep.h
parentMoved the random code to a function (cSheep::GenerateNaturalRandomColor()) (diff)
downloadcuberite-68007ab3e5aba33fb3a8e34c0301401aef594737.tar
cuberite-68007ab3e5aba33fb3a8e34c0301401aef594737.tar.gz
cuberite-68007ab3e5aba33fb3a8e34c0301401aef594737.tar.bz2
cuberite-68007ab3e5aba33fb3a8e34c0301401aef594737.tar.lz
cuberite-68007ab3e5aba33fb3a8e34c0301401aef594737.tar.xz
cuberite-68007ab3e5aba33fb3a8e34c0301401aef594737.tar.zst
cuberite-68007ab3e5aba33fb3a8e34c0301401aef594737.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Sheep.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Mobs/Sheep.h b/src/Mobs/Sheep.h
index 41de7924f..36d7df826 100644
--- a/src/Mobs/Sheep.h
+++ b/src/Mobs/Sheep.h
@@ -14,7 +14,9 @@ class cSheep :
public:
- /** Use -1 for random color. */
+ /** The number is the color of the sheep.
+ 0-15 are the normal colors, if you type -1 the server
+ automatically chooses the right color for the sheep when spawned. */
cSheep(int a_Color = -1);
CLASS_PROTODEF(cSheep);
@@ -25,6 +27,7 @@ public:
virtual const cItem GetFollowedItem(void) const override { return cItem(E_ITEM_WHEAT); }
+ /** Generates a random color for the sheep, like Mojang it does. */
static NIBBLETYPE GenerateNaturalRandomColor(void);
bool IsSheared(void) const { return m_IsSheared; }