24 #ifndef ACTORMANAGER_H
25 #define ACTORMANAGER_H
96 const int dx,
const int dy,
104 const int x,
const int y,
111 const int subX,
const int subY,
112 const int *
const cards);
149 const int x,
const int y,
179 const Being *
const excluded)
191 const int maxTileDist,
234 void heal(
const Being *
const target)
const;
275 const std::string &header);
296 const bool serverBuggy)
const;
331 #define defList(list1, mob) \
332 bool isIn##list1##List(const std::string &name) const A_WARN_UNUSED\
333 { return m##list1##mob##Set.find(name) != m##list1##mob##Set.end(); }\
334 void rebuild##list1##mob();\
335 std::set<std::string> get##list1##mob##Set() const noexcept2\
337 { return m##list1##mob##Set; }\
338 std::list<std::string> get##list1##mob() const noexcept2 A_WARN_UNUSED\
339 { return m##list1##mob; }
391 const std::string &name);
399 const Being *
const excluded,
405 const int x,
const int y,
406 const Being *
const excluded,
435 #define defVarsP(mob) \
436 std::list<std::string> mPriority##mob;\
437 std::set<std::string> mPriority##mob##Set;\
438 StringIntMap mPriority##mob##Map;
440 #define defVars(mob) \
441 std::list<std::string> m##mob;\
442 std::set<std::string> m##mob##Set;\
443 StringIntMap m##mob##Map;\
444 std::list<std::string> mIgnore##mob;\
445 std::set<std::string> mIgnore##mob##Set;
std::set< ActorSprite * > ActorSprites
#define defList(list1, mob)
IdNameMapping::const_iterator IdNameMappingCIter
std::map< BeingId, std::set< std::string > > IdNameMapping
std::map< BeingId, ActorSprite * > ActorSpritesMap
ActorSprites::const_iterator ActorSpritesConstIterator
ActorSprites::iterator ActorSpritesIterator
ActorSpritesMap::iterator ActorSpritesMapIterator
ActorSpritesMap::const_iterator ActorSpritesMapConstIterator
ActorManager * actorManager
std::string findCharById(const int32_t id)
int getPriorityAttackMobIndex(const std::string &name) const
void updatePlayerColors() const
void setPlayer(LocalPlayer *const player)
ActorSprites mDeleteActors
bool pickUpAll(const int x1, const int y1, const int x2, const int y2, const bool serverBuggy) const
Being * findPortalByTile(const int x, const int y) const
Being * findNearestLivingBeing(const int x, const int y, int maxTileDist, const ActorTypeT type, const Being *const excluded) const
void findBeingsByPixel(std::vector< ActorSprite * > &beings, const int x, const int y, const AllPlayers allPlayers) const
bool hasActorSprite(const ActorSprite *const actor) const
Being * findMostDamagedPlayer(const int maxTileDist) const
void setAttackMobs(const std::list< std::string > &mobs)
Being * findBeing(const BeingId id) const
void updateRoom(const ChatObject *const newChat)
void parseLevels(std::string levels) const
void updateBadges() const
Being * findNearestPvpPlayer() const
void heal(const Being *const target) const
static Being * cloneBeing(const Being *const srcBeing, const int dx, const int dy, const int id)
bool mTargetOnlyReachable
Being * findBeingByName(const std::string &name, const ActorTypeT type) const
bool checkDefaultPickup() const
void addAttackMob(const std::string &name)
void destroy(ActorSprite *const actor)
void addIgnorePickupItem(const std::string &name)
void getMobNames(StringVect &names) const
const StringIntMap & getPriorityAttackMobsMap() const
void addChar(const int32_t id, const std::string &name)
int getPickupItemsSize() const
void undelete(const ActorSprite *const actor)
std::list< std::string > mPickupItems
void addIgnoreAttackMob(const std::string &name)
void addBlock(const BeingId id)
void setMap(Map *const map)
std::string getSeenPlayerById(const BeingId id) const
void updateNameId(const std::string &name, const BeingId beingId)
void removeAttackMob(const std::string &name)
std::list< std::string > mAttackMobs
void optionChanged(const std::string &name)
std::string mSpellItenplz
void updateEffects(const std::map< BeingTypeId, int > &addEffects, const std::set< BeingTypeId > &removeEffects) const
void removeRoom(const int chatId)
ActorSprite * findActor(const BeingId id) const
int getPriorityAttackMobsSize() const
void updatePlayerNames() const
StringIntMap mAttackMobsMap
void addPickupItem(const std::string &name)
void storeAttackList() const
int getPickupItemIndex(const std::string &name) const
void updatePlayerGuild() const
int getAttackMobsSize() const
FloorItem * findItem(const BeingId id) const
Being * findNearestByName(const std::string &name, const ActorTypeT &type) const
std::set< BeingId > mBlockedBeings
bool validateBeing(const Being *const aroundBeing, Being *const being, const ActorTypeT &type, const Being *const excluded, const int maxCost) const
std::list< std::string > mPriorityAttackMobs
void deleteBlock(const BeingId id)
bool isBlocked(const BeingId id) const
Being * createBeing(const BeingId id, const ActorTypeT type, const BeingTypeId subtype)
void removePickupItem(const std::string &name)
bool checkForPickup(const FloorItem *const item) const
void addPriorityAttackMob(const std::string &name)
Being * findBeingByPixel(const int x, const int y, const AllPlayers allPlayers) const
const ActorSprites & getAll() const A_CONST
FloorItem * createItem(const BeingId id, const int itemId, const int x, const int y, const ItemTypeT itemType, const int amount, const int refine, const ItemColor color, const Identified identified, const Damaged damaged, const int subX, const int subY, const int *const cards)
StringIntMap mPriorityAttackMobsMap
const StringIntMap & getAttackMobsMap() const
void printBeingsToChat(const std::string &header) const
ActorSpritesMap mActorsIdMap
int getAttackMobIndex(const std::string &name) const
void setPriorityAttackMobs(const std::list< std::string > &mobs)
void erase(ActorSprite *const actor)
bool pickUpNearest(const int x, const int y, int maxdist) const
void getPlayerNames(StringVect &names, const NpcNames npcNames) const
void updateSeenPlayers(const std::set< std::string > &onlinePlayers)
std::map< int32_t, std::string > mChars
static int getIndexByName(const std::string &name, const StringIntMap &map)
#define A_DELETE_COPY(func)
std::map< std::string, int > StringIntMap
std::vector< std::string > StringVect