shared_ptr -> std::shared_ptr
This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
This commit is contained in:
@@ -19,13 +19,13 @@ protected:
|
||||
DiggerItem(int id, int attackDamage, const Tier *tier, TileArray *tiles);
|
||||
|
||||
public:
|
||||
virtual float getDestroySpeed(shared_ptr<ItemInstance> itemInstance, Tile *tile);
|
||||
virtual bool hurtEnemy(shared_ptr<ItemInstance> itemInstance, shared_ptr<Mob> mob, shared_ptr<Mob> attacker);
|
||||
virtual bool mineBlock(shared_ptr<ItemInstance> itemInstance, Level *level, int tile, int x, int y, int z, shared_ptr<Mob> owner);
|
||||
virtual int getAttackDamage(shared_ptr<Entity> entity);
|
||||
virtual float getDestroySpeed(std::shared_ptr<ItemInstance> itemInstance, Tile *tile);
|
||||
virtual bool hurtEnemy(std::shared_ptr<ItemInstance> itemInstance, std::shared_ptr<Mob> mob, std::shared_ptr<Mob> attacker);
|
||||
virtual bool mineBlock(std::shared_ptr<ItemInstance> itemInstance, Level *level, int tile, int x, int y, int z, std::shared_ptr<Mob> owner);
|
||||
virtual int getAttackDamage(std::shared_ptr<Entity> entity);
|
||||
virtual bool isHandEquipped();
|
||||
virtual int getEnchantmentValue();
|
||||
|
||||
const Tier *getTier();
|
||||
bool isValidRepairItem(shared_ptr<ItemInstance> source, shared_ptr<ItemInstance> repairItem);
|
||||
bool isValidRepairItem(std::shared_ptr<ItemInstance> source, std::shared_ptr<ItemInstance> repairItem);
|
||||
};
|
||||
Reference in New Issue
Block a user