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:
@@ -24,26 +24,26 @@ private:
|
||||
public:
|
||||
PotionItem(int id);
|
||||
|
||||
virtual vector<MobEffectInstance *> *getMobEffects(shared_ptr<ItemInstance> potion);
|
||||
virtual vector<MobEffectInstance *> *getMobEffects(std::shared_ptr<ItemInstance> potion);
|
||||
virtual vector<MobEffectInstance *> *getMobEffects(int auxValue);
|
||||
virtual shared_ptr<ItemInstance> useTimeDepleted(shared_ptr<ItemInstance> instance, Level *level, shared_ptr<Player> player);
|
||||
virtual int getUseDuration(shared_ptr<ItemInstance> itemInstance);
|
||||
virtual UseAnim getUseAnimation(shared_ptr<ItemInstance> itemInstance);
|
||||
virtual shared_ptr<ItemInstance> use(shared_ptr<ItemInstance> instance, Level *level, shared_ptr<Player> player);
|
||||
virtual bool TestUse(Level *level, shared_ptr<Player> player);
|
||||
virtual bool useOn(shared_ptr<ItemInstance> itemInstance, shared_ptr<Player> player, Level *level, int x, int y, int z, int face, float clickX, float clickY, float clickZ, bool bTestUseOnOnly=false);
|
||||
virtual std::shared_ptr<ItemInstance> useTimeDepleted(std::shared_ptr<ItemInstance> instance, Level *level, std::shared_ptr<Player> player);
|
||||
virtual int getUseDuration(std::shared_ptr<ItemInstance> itemInstance);
|
||||
virtual UseAnim getUseAnimation(std::shared_ptr<ItemInstance> itemInstance);
|
||||
virtual std::shared_ptr<ItemInstance> use(std::shared_ptr<ItemInstance> instance, Level *level, std::shared_ptr<Player> player);
|
||||
virtual bool TestUse(Level *level, std::shared_ptr<Player> player);
|
||||
virtual bool useOn(std::shared_ptr<ItemInstance> itemInstance, std::shared_ptr<Player> player, Level *level, int x, int y, int z, int face, float clickX, float clickY, float clickZ, bool bTestUseOnOnly=false);
|
||||
virtual Icon *getIcon(int auxValue);
|
||||
virtual Icon *getLayerIcon(int auxValue, int spriteLayer);
|
||||
static bool isThrowable(int auxValue);
|
||||
int getColor(int data);
|
||||
virtual int getColor(shared_ptr<ItemInstance> item, int spriteLayer);
|
||||
virtual int getColor(std::shared_ptr<ItemInstance> item, int spriteLayer);
|
||||
virtual bool hasMultipleSpriteLayers();
|
||||
virtual bool hasInstantenousEffects(int itemAuxValue);
|
||||
virtual wstring getHoverName(shared_ptr<ItemInstance> itemInstance);
|
||||
virtual void appendHoverText(shared_ptr<ItemInstance> itemInstance, shared_ptr<Player> player, vector<wstring> *lines, bool advanced, vector<wstring> &unformattedStrings);
|
||||
virtual bool isFoil(shared_ptr<ItemInstance> itemInstance);
|
||||
virtual wstring getHoverName(std::shared_ptr<ItemInstance> itemInstance);
|
||||
virtual void appendHoverText(std::shared_ptr<ItemInstance> itemInstance, std::shared_ptr<Player> player, vector<wstring> *lines, bool advanced, vector<wstring> &unformattedStrings);
|
||||
virtual bool isFoil(std::shared_ptr<ItemInstance> itemInstance);
|
||||
|
||||
virtual unsigned int getUseDescriptionId(shared_ptr<ItemInstance> instance);
|
||||
virtual unsigned int getUseDescriptionId(std::shared_ptr<ItemInstance> instance);
|
||||
|
||||
//@Override
|
||||
void registerIcons(IconRegister *iconRegister);
|
||||
|
||||
Reference in New Issue
Block a user