diff options
author | madmaxoft <github@xoft.cz> | 2014-07-17 22:15:34 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-07-17 22:15:34 +0200 |
commit | 2423fbf2efa39e28cc348acc11b9269e573dcdef (patch) | |
tree | ce58732c3d16aeef3e68e2c3bdcb372199605312 /src/Items/ItemFishingRod.h | |
parent | Fixed spaces around single-line comments. (diff) | |
download | cuberite-2423fbf2efa39e28cc348acc11b9269e573dcdef.tar cuberite-2423fbf2efa39e28cc348acc11b9269e573dcdef.tar.gz cuberite-2423fbf2efa39e28cc348acc11b9269e573dcdef.tar.bz2 cuberite-2423fbf2efa39e28cc348acc11b9269e573dcdef.tar.lz cuberite-2423fbf2efa39e28cc348acc11b9269e573dcdef.tar.xz cuberite-2423fbf2efa39e28cc348acc11b9269e573dcdef.tar.zst cuberite-2423fbf2efa39e28cc348acc11b9269e573dcdef.zip |
Diffstat (limited to 'src/Items/ItemFishingRod.h')
-rw-r--r-- | src/Items/ItemFishingRod.h | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/src/Items/ItemFishingRod.h b/src/Items/ItemFishingRod.h index 3b1ad1717..435d8ccf4 100644 --- a/src/Items/ItemFishingRod.h +++ b/src/Items/ItemFishingRod.h @@ -17,13 +17,15 @@ -///////////////////////////////////////////////////////////////////////////////////// + + +//////////////////////////////////////////////////////////////////////////////// // cFloaterCallback class cFloaterCallback : public cEntityCallback { public: - cFloaterCallback(void) : + cFloaterCallback(void) : m_CanPickup(false), m_AttachedMobID(-1) { @@ -49,8 +51,13 @@ protected: Vector3d m_Pos; } ; -//////////////////////////////////////////////////////////////////////////// -// cSweepEntityCallback + + + + +//////////////////////////////////////////////////////////////////////////////// +// cSweepEntityCallback: + class cSweepEntityCallback : public cEntityCallback { @@ -73,6 +80,8 @@ protected: + + class cItemFishingRodHandler : public cItemHandler { @@ -106,19 +115,19 @@ public: { cItems Drops; int ItemCategory = a_World->GetTickRandomNumber(99); - if (ItemCategory <= 4) // Treasures 5% + if (ItemCategory <= 4) // Treasures 5% { int Treasure = a_World->GetTickRandomNumber(5); switch (Treasure) { case 0: { - Drops.Add(cItem(E_ITEM_BOW)); // TODO: Enchantments + Drops.Add(cItem(E_ITEM_BOW)); // TODO: Enchantments break; } case 1: { - Drops.Add(cItem(E_ITEM_BOOK)); // TODO: Enchanted book + Drops.Add(cItem(E_ITEM_BOOK)); // TODO: Enchanted book break; } case 2: @@ -237,3 +246,7 @@ public: return true; } } ; + + + + |