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:
void_17
2026-03-02 15:58:20 +07:00
parent d63f79325f
commit 7074f35e4b
1373 changed files with 12054 additions and 12054 deletions

View File

@@ -26,7 +26,7 @@ private:
public:
Wolf(Level *level);
virtual bool useNewAi();
virtual void setTarget(shared_ptr<Mob> target);
virtual void setTarget(std::shared_ptr<Mob> target);
protected:
virtual void serverAiMobStep();
@@ -61,11 +61,11 @@ public:
float getHeadHeight();
int getMaxHeadXRot();
virtual bool hurt(DamageSource *source, int dmg);
virtual bool doHurtTarget(shared_ptr<Entity> target);
virtual bool interact(shared_ptr<Player> player);
virtual bool doHurtTarget(std::shared_ptr<Entity> target);
virtual bool interact(std::shared_ptr<Player> player);
virtual void handleEntityEvent(byte id);
float getTailAngle();
virtual bool isFood(shared_ptr<ItemInstance> item);
virtual bool isFood(std::shared_ptr<ItemInstance> item);
virtual int getMaxSpawnClusterSize();
bool isAngry();
void setAngry(bool value);
@@ -77,10 +77,10 @@ public:
int GetSynchedHealth();
protected:
virtual shared_ptr<AgableMob> getBreedOffspring(shared_ptr<AgableMob> target);
virtual std::shared_ptr<AgableMob> getBreedOffspring(std::shared_ptr<AgableMob> target);
public:
virtual void setIsInterested(bool isInterested);
virtual bool canMate(shared_ptr<Animal> animal);
virtual bool canMate(std::shared_ptr<Animal> animal);
bool isInterested();
};