diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-05-06 19:37:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-05-06 21:57:13 +0300 |
commit | e26b64efb9c6b79bbd5d9426af6887e83651e466 (patch) | |
tree | af915bda2a533558cfecaf363e331d59145e1224 /src/localplayer.h | |
parent | 0f58a82314ca88b059674c98236f229358f6a80a (diff) | |
download | manaverse-e26b64efb9c6b79bbd5d9426af6887e83651e466.tar.gz manaverse-e26b64efb9c6b79bbd5d9426af6887e83651e466.tar.bz2 manaverse-e26b64efb9c6b79bbd5d9426af6887e83651e466.tar.xz manaverse-e26b64efb9c6b79bbd5d9426af6887e83651e466.zip |
Move attack filter arrays and methods from localplayer to actorspritemanager class.
Diffstat (limited to 'src/localplayer.h')
-rw-r--r-- | src/localplayer.h | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/src/localplayer.h b/src/localplayer.h index 4b9e98c13..6a6a015b8 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -449,79 +449,6 @@ class LocalPlayer : public Being, public ActorSpriteListener, void checkNewName(Being *being); - bool isInAttackList(const std::string &name) - { return mAttackMobsSet.find(name) != mAttackMobsSet.end(); } - - bool isInPriorityAttackList(const std::string &name) - { - return mPriorityAttackMobsSet.find(name) - != mPriorityAttackMobsSet.end(); - } - - bool isInIgnoreAttackList(const std::string &name) - { - return mIgnoreAttackMobsSet.find(name) - != mIgnoreAttackMobsSet.end(); - } - -/* - bool isInAttackOrIgnoreList(const std::string &name) - { return mAttackMobsSet.find(name) != mAttackMobsSet.end() || - mIgnoreAttackMobsSet.find(name) != mIgnoreAttackMobsSet.end(); } -*/ - - void removeAttackMob(const std::string &name); - - void addPriorityAttackMob(std::string name); - - void addAttackMob(std::string name); - - void addIgnoreAttackMob(std::string name); - - std::list<std::string> getPriorityAttackMobs() - { return mPriorityAttackMobs; } - - std::list<std::string> getAttackMobs() - { return mAttackMobs; } - - void setPriorityAttackMobs(std::list<std::string> mobs) - { mPriorityAttackMobs = mobs; } - - void setAttackMobs(std::list<std::string> mobs) - { mAttackMobs = mobs; } - - int getPriorityAttackMobsSize() - { return mPriorityAttackMobs.size(); } - - int getAttackMobsSize() - { return mAttackMobs.size(); } - - std::list<std::string> getIgnoreAttackMobs() - { return mIgnoreAttackMobs; } - - std::set<std::string> getAttackMobsSet() - { return mAttackMobsSet; } - - std::set<std::string> getPriorityAttackMobsSet() - { return mPriorityAttackMobsSet; } - - std::set<std::string> getIgnoreAttackMobsSet() - { return mIgnoreAttackMobsSet; } - - void rebuildPriorityAttackMobs(); - - void rebuildAttackMobs(); - - std::map<std::string, int> getAttackMobsMap() - { return mAttackMobsMap; } - - std::map<std::string, int> getPriorityAttackMobsMap() - { return mPriorityAttackMobsMap; } - - int getAttackMobIndex(std::string name); - - int getPriorityAttackMobIndex(std::string name); - void resetYellowBar(); protected: @@ -650,14 +577,6 @@ class LocalPlayer : public Being, public ActorSpriteListener, bool mServerAttack; std::string mLastHitFrom; std::string mWaitFor; - std::list<std::string> mPriorityAttackMobs; - std::list<std::string> mAttackMobs; - std::list<std::string> mIgnoreAttackMobs; - std::set<std::string> mPriorityAttackMobsSet; - std::set<std::string> mAttackMobsSet; - std::set<std::string> mIgnoreAttackMobsSet; - std::map<std::string, int> mPriorityAttackMobsMap; - std::map<std::string, int> mAttackMobsMap; }; extern LocalPlayer *player_node; |