summaryrefslogtreecommitdiffstats
path: root/src/Items
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-09-05 16:56:31 +0200
committerTycho <work.tycho+git@gmail.com>2014-09-05 16:56:31 +0200
commit28f66efe307150558f4ad2546e058370a828be3e (patch)
tree2ef088aa2d1a8ae85007b34b463d5044847bf006 /src/Items
parentMerge branch 'master' into ComponentRewrite (diff)
downloadcuberite-28f66efe307150558f4ad2546e058370a828be3e.tar
cuberite-28f66efe307150558f4ad2546e058370a828be3e.tar.gz
cuberite-28f66efe307150558f4ad2546e058370a828be3e.tar.bz2
cuberite-28f66efe307150558f4ad2546e058370a828be3e.tar.lz
cuberite-28f66efe307150558f4ad2546e058370a828be3e.tar.xz
cuberite-28f66efe307150558f4ad2546e058370a828be3e.tar.zst
cuberite-28f66efe307150558f4ad2546e058370a828be3e.zip
Diffstat (limited to 'src/Items')
-rw-r--r--src/Items/ItemArmor.h4
-rw-r--r--src/Items/ItemBed.h4
-rw-r--r--src/Items/ItemBoat.h4
-rw-r--r--src/Items/ItemBow.h4
-rw-r--r--src/Items/ItemBrewingStand.h4
-rw-r--r--src/Items/ItemBucket.h6
-rw-r--r--src/Items/ItemCake.h4
-rw-r--r--src/Items/ItemCauldron.h4
-rw-r--r--src/Items/ItemComparator.h4
-rw-r--r--src/Items/ItemDoor.h4
-rw-r--r--src/Items/ItemDye.h2
-rw-r--r--src/Items/ItemEmptyMap.h2
-rw-r--r--src/Items/ItemFishingRod.h6
-rw-r--r--src/Items/ItemFlowerPot.h4
-rw-r--r--src/Items/ItemFood.h6
-rw-r--r--src/Items/ItemGoldenApple.h6
-rw-r--r--src/Items/ItemHoe.h4
-rw-r--r--src/Items/ItemItemFrame.h2
-rw-r--r--src/Items/ItemLeaves.h2
-rw-r--r--src/Items/ItemLighter.h2
-rw-r--r--src/Items/ItemLilypad.h6
-rw-r--r--src/Items/ItemMilk.h4
-rw-r--r--src/Items/ItemMinecart.h2
-rw-r--r--src/Items/ItemMobHead.h4
-rw-r--r--src/Items/ItemNetherWart.h4
-rw-r--r--src/Items/ItemPainting.h2
-rw-r--r--src/Items/ItemPickaxe.h4
-rw-r--r--src/Items/ItemPotion.h8
-rw-r--r--src/Items/ItemRedstoneDust.h4
-rw-r--r--src/Items/ItemRedstoneRepeater.h4
-rw-r--r--src/Items/ItemSapling.h2
-rw-r--r--src/Items/ItemSeeds.h8
-rw-r--r--src/Items/ItemShears.h10
-rw-r--r--src/Items/ItemShovel.h6
-rw-r--r--src/Items/ItemSign.h4
-rw-r--r--src/Items/ItemSpawnEgg.h2
-rw-r--r--src/Items/ItemString.h4
-rw-r--r--src/Items/ItemSugarcane.h4
-rw-r--r--src/Items/ItemSword.h6
-rw-r--r--src/Items/ItemThrowable.h4
40 files changed, 85 insertions, 85 deletions
diff --git a/src/Items/ItemArmor.h b/src/Items/ItemArmor.h
index cc7f15078..2436df5bd 100644
--- a/src/Items/ItemArmor.h
+++ b/src/Items/ItemArmor.h
@@ -18,7 +18,7 @@ public:
}
/** Move the armor to the armor slot of the player's inventory */
- virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) /*override*/
+ virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) override
{
int SlotNum;
if (ItemCategory::IsHelmet(a_Item.m_ItemType))
@@ -60,7 +60,7 @@ public:
return true;
}
- virtual bool CanRepairWithRawMaterial(short a_ItemType) /*override*/
+ virtual bool CanRepairWithRawMaterial(short a_ItemType) override
{
switch (m_ItemType)
{
diff --git a/src/Items/ItemBed.h b/src/Items/ItemBed.h
index dd48c57f7..94a14cf16 100644
--- a/src/Items/ItemBed.h
+++ b/src/Items/ItemBed.h
@@ -19,7 +19,7 @@ public:
}
- virtual bool IsPlaceable(void) /*override*/
+ virtual bool IsPlaceable(void) override
{
return true;
}
@@ -29,7 +29,7 @@ public:
int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace,
int a_CursorX, int a_CursorY, int a_CursorZ,
BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta
- ) /*override*/
+ ) override
{
if (a_BlockFace != BLOCK_FACE_TOP)
{
diff --git a/src/Items/ItemBoat.h b/src/Items/ItemBoat.h
index 5c50c6321..7faac1e32 100644
--- a/src/Items/ItemBoat.h
+++ b/src/Items/ItemBoat.h
@@ -28,7 +28,7 @@ public:
- virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) /*override*/
+ virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) override
{
if ((a_Dir != BLOCK_FACE_YM) && (a_Dir != BLOCK_FACE_NONE))
{
@@ -47,7 +47,7 @@ public:
{
}
- virtual bool OnNextBlock(int a_CBBlockX, int a_CBBlockY, int a_CBBlockZ, BLOCKTYPE a_CBBlockType, NIBBLETYPE a_CBBlockMeta, char a_CBEntryFace) /*override*/
+ virtual bool OnNextBlock(int a_CBBlockX, int a_CBBlockY, int a_CBBlockZ, BLOCKTYPE a_CBBlockType, NIBBLETYPE a_CBBlockMeta, char a_CBEntryFace) override
{
if (a_CBBlockType != E_BLOCK_AIR)
{
diff --git a/src/Items/ItemBow.h b/src/Items/ItemBow.h
index 639442481..f29cc5d59 100644
--- a/src/Items/ItemBow.h
+++ b/src/Items/ItemBow.h
@@ -27,7 +27,7 @@ public:
}
- virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) /*override*/
+ virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) override
{
ASSERT(a_Player != NULL);
@@ -42,7 +42,7 @@ public:
}
- virtual void OnItemShoot(cPlayer * a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace) /*override*/
+ virtual void OnItemShoot(cPlayer * a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace) override
{
// Actual shot - produce the arrow with speed based on the ticks that the bow was charged
ASSERT(a_Player != NULL);
diff --git a/src/Items/ItemBrewingStand.h b/src/Items/ItemBrewingStand.h
index 95e2fedca..7be57763c 100644
--- a/src/Items/ItemBrewingStand.h
+++ b/src/Items/ItemBrewingStand.h
@@ -17,7 +17,7 @@ public:
}
- virtual bool IsPlaceable(void) /*override*/
+ virtual bool IsPlaceable(void) override
{
return true;
}
@@ -28,7 +28,7 @@ public:
int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace,
int a_CursorX, int a_CursorY, int a_CursorZ,
BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta
- ) /*override*/
+ ) override
{
a_BlockType = E_BLOCK_BREWING_STAND;
a_BlockMeta = 0;
diff --git a/src/Items/ItemBucket.h b/src/Items/ItemBucket.h
index 6e994555b..a17c4838b 100644
--- a/src/Items/ItemBucket.h
+++ b/src/Items/ItemBucket.h
@@ -22,7 +22,7 @@ public:
}
- virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) /*override*/
+ virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) override
{
switch (m_ItemType)
{
@@ -156,7 +156,7 @@ public:
{
}
- virtual bool OnNextBlock(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, char a_EntryFace) /*override*/
+ virtual bool OnNextBlock(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, char a_EntryFace) override
{
if (IsBlockWater(a_BlockType) || IsBlockLava(a_BlockType))
{
@@ -198,7 +198,7 @@ public:
Vector3i m_Pos;
BLOCKTYPE m_ReplacedBlock;
- virtual bool OnNextBlock(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, char a_EntryFace) /*override*/
+ virtual bool OnNextBlock(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, char a_EntryFace) override
{
if (a_BlockType != E_BLOCK_AIR)
{
diff --git a/src/Items/ItemCake.h b/src/Items/ItemCake.h
index dab756a3f..d1cb091b6 100644
--- a/src/Items/ItemCake.h
+++ b/src/Items/ItemCake.h
@@ -17,7 +17,7 @@ public:
}
- virtual bool IsPlaceable(void) /*override*/
+ virtual bool IsPlaceable(void) override
{
return true;
}
@@ -28,7 +28,7 @@ public:
int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace,
int a_CursorX, int a_CursorY, int a_CursorZ,
BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta
- ) /*override*/
+ ) override
{
a_BlockType = E_BLOCK_CAKE;
a_BlockMeta = 0;
diff --git a/src/Items/ItemCauldron.h b/src/Items/ItemCauldron.h
index 4cc222bec..9617c30ef 100644
--- a/src/Items/ItemCauldron.h
+++ b/src/Items/ItemCauldron.h
@@ -17,7 +17,7 @@ public:
}
- virtual bool IsPlaceable(void) /*override*/
+ virtual bool IsPlaceable(void) override
{
return true;
}
@@ -28,7 +28,7 @@ public:
int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace,
int a_CursorX, int a_CursorY, int a_CursorZ,
BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta
- ) /*override*/
+ ) override
{
a_BlockType = E_BLOCK_CAULDRON;
a_BlockMeta = 0;
diff --git a/src/Items/ItemComparator.h b/src/Items/ItemComparator.h
index ebe207fc9..fc843c186 100644
--- a/src/Items/ItemComparator.h
+++ b/src/Items/ItemComparator.h
@@ -17,7 +17,7 @@ public:
{
}
- virtual bool IsPlaceable(void) /*override*/
+ virtual bool IsPlaceable(void) override
{
return true;
}
@@ -27,7 +27,7 @@ public:
int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace,
int a_CursorX, int a_CursorY, int a_CursorZ,
BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta
- ) /*override*/
+ ) override
{
a_BlockType = E_BLOCK_INACTIVE_COMPARATOR;
a_BlockMeta = cBlockRedstoneRepeaterHandler::RepeaterRotationToMetaData(a_Player->GetYaw());
diff --git a/src/Items/ItemDoor.h b/src/Items/ItemDoor.h
index ca89ee65f..c1b439024 100644
--- a/src/Items/ItemDoor.h
+++ b/src/Items/ItemDoor.h
@@ -18,7 +18,7 @@ public:
}
- virtual bool IsPlaceable(void) /*override*/
+ virtual bool IsPlaceable(void) override
{
return true;
}
@@ -28,7 +28,7 @@ public:
int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace,
int a_CursorX, int a_CursorY, int a_CursorZ,
BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta
- ) /*override*/
+ ) override
{
a_BlockType = (m_ItemType == E_ITEM_WOODEN_DOOR) ? E_BLOCK_WOODEN_DOOR : E_BLOCK_IRON_DOOR;
cChunkInterface ChunkInterface(a_World->GetChunkMap());
diff --git a/src/Items/ItemDye.h b/src/Items/ItemDye.h
index d57f4700c..ccf4714f7 100644
--- a/src/Items/ItemDye.h
+++ b/src/Items/ItemDye.h
@@ -19,7 +19,7 @@ public:
}
- virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) /*override*/
+ virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) override
{
// Handle growing the plants:
if (a_Item.m_ItemDamage == E_META_DYE_WHITE)
diff --git a/src/Items/ItemEmptyMap.h b/src/Items/ItemEmptyMap.h
index 5e16c0d6b..953673382 100644
--- a/src/Items/ItemEmptyMap.h
+++ b/src/Items/ItemEmptyMap.h
@@ -27,7 +27,7 @@ public:
{
}
- virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) /*override*/
+ virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) override
{
UNUSED(a_Item);
UNUSED(a_BlockX);
diff --git a/src/Items/ItemFishingRod.h b/src/Items/ItemFishingRod.h
index 63e9a46a6..6350a38ba 100644
--- a/src/Items/ItemFishingRod.h
+++ b/src/Items/ItemFishingRod.h
@@ -31,7 +31,7 @@ public:
{
}
- virtual bool Item(cEntity * a_Entity) /*override*/
+ virtual bool Item(cEntity * a_Entity) override
{
m_CanPickup = ((cFloater *)a_Entity)->CanPickup();
m_Pos = Vector3d(a_Entity->GetPosX(), a_Entity->GetPosY(), a_Entity->GetPosZ());
@@ -67,7 +67,7 @@ public:
{
}
- virtual bool Item(cEntity * a_Entity) /*override*/
+ virtual bool Item(cEntity * a_Entity) override
{
Vector3d Speed = m_PlayerPos - a_Entity->GetPosition();
a_Entity->AddSpeed(Speed);
@@ -93,7 +93,7 @@ public:
{
}
- virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) /*override*/
+ virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) override
{
if (a_Dir != BLOCK_FACE_NONE)
{
diff --git a/src/Items/ItemFlowerPot.h b/src/Items/ItemFlowerPot.h
index 9fbc0e978..320dce997 100644
--- a/src/Items/ItemFlowerPot.h
+++ b/src/Items/ItemFlowerPot.h
@@ -17,7 +17,7 @@ public:
}
- virtual bool IsPlaceable(void) /*override*/
+ virtual bool IsPlaceable(void) override
{
return true;
}
@@ -28,7 +28,7 @@ public:
int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace,
int a_CursorX, int a_CursorY, int a_CursorZ,
BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta
- ) /*override*/
+ ) override
{
a_BlockType = E_BLOCK_FLOWER_POT;
a_BlockMeta = 0;
diff --git a/src/Items/ItemFood.h b/src/Items/ItemFood.h
index 3f67463ed..9035344df 100644
--- a/src/Items/ItemFood.h
+++ b/src/Items/ItemFood.h
@@ -18,13 +18,13 @@ public:
}
- virtual bool IsFood(void) /*override*/
+ virtual bool IsFood(void) override
{
return true;
}
- virtual FoodInfo GetFoodInfo(void) /*override*/
+ virtual FoodInfo GetFoodInfo(void) override
{
switch (m_ItemType)
{
@@ -58,7 +58,7 @@ public:
return FoodInfo(0, 0.f);
}
- virtual bool GetEatEffect(cEntityEffect::eType & a_EffectType, int & a_EffectDurationTicks, short & a_EffectIntensity, float & a_Chance) /*override*/
+ virtual bool GetEatEffect(cEntityEffect::eType & a_EffectType, int & a_EffectDurationTicks, short & a_EffectIntensity, float & a_Chance) override
{
switch (m_ItemType)
{
diff --git a/src/Items/ItemGoldenApple.h b/src/Items/ItemGoldenApple.h
index e5ecf9c3e..02ac0202c 100644
--- a/src/Items/ItemGoldenApple.h
+++ b/src/Items/ItemGoldenApple.h
@@ -18,7 +18,7 @@ public:
}
- virtual bool EatItem(cPlayer * a_Player, cItem * a_Item) /*override*/
+ virtual bool EatItem(cPlayer * a_Player, cItem * a_Item) override
{
// Feed the player:
FoodInfo Info = GetFoodInfo();
@@ -40,13 +40,13 @@ public:
}
- virtual FoodInfo GetFoodInfo(void) /*override*/
+ virtual FoodInfo GetFoodInfo(void) override
{
return FoodInfo(4, 9.6);
}
- virtual bool GetEatEffect(cEntityEffect::eType & a_EffectType, int & a_EffectDurationTicks, short & a_EffectIntensity, float & a_Chance) /*override*/
+ virtual bool GetEatEffect(cEntityEffect::eType & a_EffectType, int & a_EffectDurationTicks, short & a_EffectIntensity, float & a_Chance) override
{
return false;
}
diff --git a/src/Items/ItemHoe.h b/src/Items/ItemHoe.h
index 01e53d636..8d0b71478 100644
--- a/src/Items/ItemHoe.h
+++ b/src/Items/ItemHoe.h
@@ -18,7 +18,7 @@ public:
{
}
- virtual bool OnItemUse(cWorld *a_World, cPlayer *a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) /*override*/
+ virtual bool OnItemUse(cWorld *a_World, cPlayer *a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) override
{
BLOCKTYPE Block = a_World->GetBlock(a_BlockX, a_BlockY, a_BlockZ);
@@ -33,7 +33,7 @@ public:
}
- virtual short GetDurabilityLossByAction(eDurabilityLostAction a_Action) /*override*/
+ virtual short GetDurabilityLossByAction(eDurabilityLostAction a_Action) override
{
return 0;
}
diff --git a/src/Items/ItemItemFrame.h b/src/Items/ItemItemFrame.h
index ba8300015..87e20ecf0 100644
--- a/src/Items/ItemItemFrame.h
+++ b/src/Items/ItemItemFrame.h
@@ -19,7 +19,7 @@ public:
}
- virtual bool OnItemUse(cWorld *a_World, cPlayer *a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) /*override*/
+ virtual bool OnItemUse(cWorld *a_World, cPlayer *a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) override
{
if ((a_Dir == BLOCK_FACE_NONE) || (a_Dir == BLOCK_FACE_YP) || (a_Dir == BLOCK_FACE_YM))
{
diff --git a/src/Items/ItemLeaves.h b/src/Items/ItemLeaves.h
index cce62e687..f48126dc5 100644
--- a/src/Items/ItemLeaves.h
+++ b/src/Items/ItemLeaves.h
@@ -23,7 +23,7 @@ public:
int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace,
int a_CursorX, int a_CursorY, int a_CursorZ,
BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta
- ) /*override*/
+ ) override
{
bool res = super::GetPlacementBlockTypeMeta(
a_World, a_Player,
diff --git a/src/Items/ItemLighter.h b/src/Items/ItemLighter.h
index 6d6119638..9f98bf85f 100644
--- a/src/Items/ItemLighter.h
+++ b/src/Items/ItemLighter.h
@@ -19,7 +19,7 @@ public:
{
}
- virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace) /*override*/
+ virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace) override
{
if (a_BlockFace < 0)
{
diff --git a/src/Items/ItemLilypad.h b/src/Items/ItemLilypad.h
index f5a8bdabb..b9d837384 100644
--- a/src/Items/ItemLilypad.h
+++ b/src/Items/ItemLilypad.h
@@ -23,13 +23,13 @@ public:
}
- virtual bool IsPlaceable(void) /*override*/
+ virtual bool IsPlaceable(void) override
{
return false; // Set as not placeable so OnItemUse is called
}
- virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace) /*override*/
+ virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace) override
{
if (a_BlockFace > BLOCK_FACE_NONE)
{
@@ -53,7 +53,7 @@ public:
{
}
- virtual bool OnNextBlock(int a_CBBlockX, int a_CBBlockY, int a_CBBlockZ, BLOCKTYPE a_CBBlockType, NIBBLETYPE a_CBBlockMeta, char a_CBEntryFace) /*override*/
+ virtual bool OnNextBlock(int a_CBBlockX, int a_CBBlockY, int a_CBBlockZ, BLOCKTYPE a_CBBlockType, NIBBLETYPE a_CBBlockMeta, char a_CBEntryFace) override
{
if (IsBlockWater(a_CBBlockType))
{
diff --git a/src/Items/ItemMilk.h b/src/Items/ItemMilk.h
index 32932bde9..db7bc13be 100644
--- a/src/Items/ItemMilk.h
+++ b/src/Items/ItemMilk.h
@@ -11,13 +11,13 @@ public:
{
}
- virtual bool IsDrinkable(short a_ItemDamage) /*override*/
+ virtual bool IsDrinkable(short a_ItemDamage) override
{
UNUSED(a_ItemDamage);
return true;
}
- virtual bool EatItem(cPlayer * a_Player, cItem * a_Item) /*override*/
+ virtual bool EatItem(cPlayer * a_Player, cItem * a_Item) override
{
UNUSED(a_Item);
a_Player->ClearEntityEffects();
diff --git a/src/Items/ItemMinecart.h b/src/Items/ItemMinecart.h
index c0d179fc2..63038de51 100644
--- a/src/Items/ItemMinecart.h
+++ b/src/Items/ItemMinecart.h
@@ -27,7 +27,7 @@ public:
- virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) /*override*/
+ virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) override
{
if (a_Dir < 0)
{
diff --git a/src/Items/ItemMobHead.h b/src/Items/ItemMobHead.h
index 6317de555..4c36fe8d8 100644
--- a/src/Items/ItemMobHead.h
+++ b/src/Items/ItemMobHead.h
@@ -18,7 +18,7 @@ public:
}
- virtual bool IsPlaceable(void) /*override*/
+ virtual bool IsPlaceable(void) override
{
return true;
}
@@ -29,7 +29,7 @@ public:
int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace,
int a_CursorX, int a_CursorY, int a_CursorZ,
BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta
- ) /*override*/
+ ) override
{
a_BlockType = E_BLOCK_HEAD;
a_BlockMeta = (NIBBLETYPE)(a_Player->GetEquippedItem().m_ItemDamage & 0x0f);
diff --git a/src/Items/ItemNetherWart.h b/src/Items/ItemNetherWart.h
index 3ada15464..10a0864b5 100644
--- a/src/Items/ItemNetherWart.h
+++ b/src/Items/ItemNetherWart.h
@@ -18,7 +18,7 @@ public:
}
- virtual bool IsPlaceable(void) /*override*/
+ virtual bool IsPlaceable(void) override
{
return true;
}
@@ -28,7 +28,7 @@ public:
int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace,
int a_CursorX, int a_CursorY, int a_CursorZ,
BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta
- ) /*override*/
+ ) override
{
if (a_BlockFace != BLOCK_FACE_TOP)
{
diff --git a/src/Items/ItemPainting.h b/src/Items/ItemPainting.h
index bbe13e21f..a2a77ce21 100644
--- a/src/Items/ItemPainting.h
+++ b/src/Items/ItemPainting.h
@@ -19,7 +19,7 @@ public:
{
}
- virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) /*override*/
+ virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) override
{
if (a_Dir == BLOCK_FACE_NONE)
{
diff --git a/src/Items/ItemPickaxe.h b/src/Items/ItemPickaxe.h
index ee819e85b..17fd96822 100644
--- a/src/Items/ItemPickaxe.h
+++ b/src/Items/ItemPickaxe.h
@@ -30,7 +30,7 @@ public:
}
}
- virtual bool CanHarvestBlock(BLOCKTYPE a_BlockType) /*override*/
+ virtual bool CanHarvestBlock(BLOCKTYPE a_BlockType) override
{
switch (a_BlockType)
{
@@ -88,7 +88,7 @@ public:
return super::CanHarvestBlock(a_BlockType);
}
- virtual bool CanRepairWithRawMaterial(short a_ItemType) /*override*/
+ virtual bool CanRepairWithRawMaterial(short a_ItemType) override
{
switch (m_ItemType)
{
diff --git a/src/Items/ItemPotion.h b/src/Items/ItemPotion.h
index 110d47fca..24614cd8a 100644
--- a/src/Items/ItemPotion.h
+++ b/src/Items/ItemPotion.h
@@ -17,8 +17,8 @@ public:
}
- // cItemHandler /*override*/s:
- virtual bool IsDrinkable(short a_ItemDamage) /*override*/
+ // cItemHandler overrides:
+ virtual bool IsDrinkable(short a_ItemDamage) override
{
// Drinkable potion if 13th lowest bit is set
// Ref.: http://minecraft.gamepedia.com/Potions#Data_value_table
@@ -26,7 +26,7 @@ public:
}
- virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) /*override*/
+ virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) override
{
short PotionDamage = a_Item.m_ItemDamage;
@@ -53,7 +53,7 @@ public:
}
- virtual bool EatItem(cPlayer * a_Player, cItem * a_Item) /*override*/
+ virtual bool EatItem(cPlayer * a_Player, cItem * a_Item) override
{
short PotionDamage = a_Item->m_ItemDamage;
diff --git a/src/Items/ItemRedstoneDust.h b/src/Items/ItemRedstoneDust.h
index 709c84a2d..a2289239c 100644
--- a/src/Items/ItemRedstoneDust.h
+++ b/src/Items/ItemRedstoneDust.h
@@ -15,7 +15,7 @@ public:
{
}
- virtual bool IsPlaceable(void) /*override*/
+ virtual bool IsPlaceable(void) override
{
return true;
}
@@ -25,7 +25,7 @@ public:
int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace,
int a_CursorX, int a_CursorY, int a_CursorZ,
BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta
- ) /*override*/
+ ) override
{
if (!cBlockInfo::FullyOccupiesVoxel(a_World->GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ))) // Some solid blocks, such as cocoa beans, are not suitable for dust
{
diff --git a/src/Items/ItemRedstoneRepeater.h b/src/Items/ItemRedstoneRepeater.h
index 930acb065..13a797d00 100644
--- a/src/Items/ItemRedstoneRepeater.h
+++ b/src/Items/ItemRedstoneRepeater.h
@@ -17,7 +17,7 @@ public:
{
}
- virtual bool IsPlaceable() /*override*/
+ virtual bool IsPlaceable() override
{
return true;
}
@@ -27,7 +27,7 @@ public:
int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace,
int a_CursorX, int a_CursorY, int a_CursorZ,
BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta
- ) /*override*/
+ ) override
{
a_BlockType = E_BLOCK_REDSTONE_REPEATER_OFF;
a_BlockMeta = cBlockRedstoneRepeaterHandler::RepeaterRotationToMetaData(a_Player->GetYaw());
diff --git a/src/Items/ItemSapling.h b/src/Items/ItemSapling.h
index a70ae6de5..dbcb12be5 100644
--- a/src/Items/ItemSapling.h
+++ b/src/Items/ItemSapling.h
@@ -23,7 +23,7 @@ public:
int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace,
int a_CursorX, int a_CursorY, int a_CursorZ,
BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta
- ) /*override*/
+ ) override
{
bool res = super::GetPlacementBlockTypeMeta(
a_World, a_Player,
diff --git a/src/Items/ItemSeeds.h b/src/Items/ItemSeeds.h
index 5b5b91626..e1db7c5f4 100644
--- a/src/Items/ItemSeeds.h
+++ b/src/Items/ItemSeeds.h
@@ -18,12 +18,12 @@ public:
}
- virtual bool IsPlaceable(void) /*override*/
+ virtual bool IsPlaceable(void) override
{
return true;
}
- virtual bool IsFood(void) /*override*/
+ virtual bool IsFood(void) override
{
switch (m_ItemType) // Special cases, both a seed and food
{
@@ -33,7 +33,7 @@ public:
}
}
- virtual FoodInfo GetFoodInfo(void) /*override*/
+ virtual FoodInfo GetFoodInfo(void) override
{
switch (m_ItemType)
{
@@ -48,7 +48,7 @@ public:
int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace,
int a_CursorX, int a_CursorY, int a_CursorZ,
BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta
- ) /*override*/
+ ) override
{
if (a_BlockFace != BLOCK_FACE_TOP)
{
diff --git a/src/Items/ItemShears.h b/src/Items/ItemShears.h
index 77d5df3ba..fa2794df2 100644
--- a/src/Items/ItemShears.h
+++ b/src/Items/ItemShears.h
@@ -20,13 +20,13 @@ public:
}
- virtual bool IsTool(void) /*override*/
+ virtual bool IsTool(void) override
{
return true;
}
- virtual bool OnDiggingBlock(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) /*override*/
+ virtual bool OnDiggingBlock(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) override
{
BLOCKTYPE Block = a_World->GetBlock(a_BlockX, a_BlockY, a_BlockZ);
if ((Block == E_BLOCK_LEAVES) || (Block == E_BLOCK_NEW_LEAVES))
@@ -47,7 +47,7 @@ public:
}
- virtual bool CanHarvestBlock(BLOCKTYPE a_BlockType) /*override*/
+ virtual bool CanHarvestBlock(BLOCKTYPE a_BlockType) override
{
switch (a_BlockType)
{
@@ -63,13 +63,13 @@ public:
}
- virtual short GetDurabilityLossByAction(eDurabilityLostAction a_Action) /*override*/
+ virtual short GetDurabilityLossByAction(eDurabilityLostAction a_Action) override
{
return 0;
}
- virtual void OnBlockDestroyed(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ) /*override*/
+ virtual void OnBlockDestroyed(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ) override
{
super::OnBlockDestroyed(a_World, a_Player, a_Item, a_BlockX, a_BlockY, a_BlockZ);
diff --git a/src/Items/ItemShovel.h b/src/Items/ItemShovel.h
index 9c35e755c..cd235678d 100644
--- a/src/Items/ItemShovel.h
+++ b/src/Items/ItemShovel.h
@@ -21,7 +21,7 @@ public:
{
}
- virtual bool OnDiggingBlock(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) /*override*/
+ virtual bool OnDiggingBlock(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) override
{
BLOCKTYPE Block = a_World->GetBlock(a_BlockX, a_BlockY, a_BlockZ);
if (Block == E_BLOCK_SNOW)
@@ -37,7 +37,7 @@ public:
return false;
}
- virtual bool CanHarvestBlock(BLOCKTYPE a_BlockType) /*override*/
+ virtual bool CanHarvestBlock(BLOCKTYPE a_BlockType) override
{
if (a_BlockType == E_BLOCK_SNOW)
{
@@ -46,7 +46,7 @@ public:
return super::CanHarvestBlock(a_BlockType);
}
- virtual bool CanRepairWithRawMaterial(short a_ItemType) /*override*/
+ virtual bool CanRepairWithRawMaterial(short a_ItemType) override
{
switch (m_ItemType)
{
diff --git a/src/Items/ItemSign.h b/src/Items/ItemSign.h
index 42d30906b..0fa0fa0be 100644
--- a/src/Items/ItemSign.h
+++ b/src/Items/ItemSign.h
@@ -20,7 +20,7 @@ public:
}
- virtual bool IsPlaceable(void) /*override*/
+ virtual bool IsPlaceable(void) override
{
return true;
}
@@ -31,7 +31,7 @@ public:
int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace,
int a_CursorX, int a_CursorY, int a_CursorZ,
BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta
- ) /*override*/
+ ) override
{
if (a_BlockFace == BLOCK_FACE_TOP)
{
diff --git a/src/Items/ItemSpawnEgg.h b/src/Items/ItemSpawnEgg.h
index 971aa9edf..bba97afa1 100644
--- a/src/Items/ItemSpawnEgg.h
+++ b/src/Items/ItemSpawnEgg.h
@@ -19,7 +19,7 @@ public:
}
- virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace) /*override*/
+ virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace) override
{
if (a_BlockFace < 0)
{
diff --git a/src/Items/ItemString.h b/src/Items/ItemString.h
index db01462dc..a97fbe0ce 100644
--- a/src/Items/ItemString.h
+++ b/src/Items/ItemString.h
@@ -16,7 +16,7 @@ public:
{
}
- virtual bool IsPlaceable(void) /*override*/
+ virtual bool IsPlaceable(void) override
{
return true;
}
@@ -26,7 +26,7 @@ public:
int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace,
int a_CursorX, int a_CursorY, int a_CursorZ,
BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta
- ) /*override*/
+ ) override
{
a_BlockType = E_BLOCK_TRIPWIRE;
a_BlockMeta = 0;
diff --git a/src/Items/ItemSugarcane.h b/src/Items/ItemSugarcane.h
index 86e90f838..dd2e2ece3 100644
--- a/src/Items/ItemSugarcane.h
+++ b/src/Items/ItemSugarcane.h
@@ -16,7 +16,7 @@ public:
{
}
- virtual bool IsPlaceable(void) /*override*/
+ virtual bool IsPlaceable(void) override
{
return true;
}
@@ -26,7 +26,7 @@ public:
int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace,
int a_CursorX, int a_CursorY, int a_CursorZ,
BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta
- ) /*override*/
+ ) override
{
a_BlockType = E_BLOCK_SUGARCANE;
a_BlockMeta = 0;
diff --git a/src/Items/ItemSword.h b/src/Items/ItemSword.h
index e806801e0..2b2dbfc0d 100644
--- a/src/Items/ItemSword.h
+++ b/src/Items/ItemSword.h
@@ -20,7 +20,7 @@ public:
}
- virtual bool CanHarvestBlock(BLOCKTYPE a_BlockType) /*override*/
+ virtual bool CanHarvestBlock(BLOCKTYPE a_BlockType) override
{
if (a_BlockType == E_BLOCK_COBWEB)
{
@@ -30,7 +30,7 @@ public:
}
- virtual bool CanRepairWithRawMaterial(short a_ItemType) /*override*/
+ virtual bool CanRepairWithRawMaterial(short a_ItemType) override
{
switch (m_ItemType)
{
@@ -44,7 +44,7 @@ public:
}
- virtual short GetDurabilityLossByAction(eDurabilityLostAction a_Action) /*override*/
+ virtual short GetDurabilityLossByAction(eDurabilityLostAction a_Action) override
{
switch ((int)a_Action)
{
diff --git a/src/Items/ItemThrowable.h b/src/Items/ItemThrowable.h
index 9d1280eb5..c151c5d3a 100644
--- a/src/Items/ItemThrowable.h
+++ b/src/Items/ItemThrowable.h
@@ -26,7 +26,7 @@ public:
}
- virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) /*override*/
+ virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) override
{
Vector3d Pos = a_Player->GetThrowStartPos();
Vector3d Speed = a_Player->GetLookVector() * m_SpeedCoeff;
@@ -128,7 +128,7 @@ public:
{
}
- virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) /*override*/
+ virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) override
{
if (a_World->GetBlock(a_BlockX, a_BlockY, a_BlockZ) == E_BLOCK_AIR)
{