summaryrefslogtreecommitdiff
path: root/src/actormanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-04 00:13:47 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-04 00:13:47 +0300
commit8d969b8b7a4178d6a72795a9446ddc7f8e398a00 (patch)
treebce7f22bf9477cad46488235a497a50a69ce8d08 /src/actormanager.h
parent0d7d3fd2888cf59ed41bc16c3305582ca64e7596 (diff)
downloadmanaplus-8d969b8b7a4178d6a72795a9446ddc7f8e398a00.tar.gz
manaplus-8d969b8b7a4178d6a72795a9446ddc7f8e398a00.tar.bz2
manaplus-8d969b8b7a4178d6a72795a9446ddc7f8e398a00.tar.xz
manaplus-8d969b8b7a4178d6a72795a9446ddc7f8e398a00.zip
Improve search being by id.
Diffstat (limited to 'src/actormanager.h')
-rw-r--r--src/actormanager.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/actormanager.h b/src/actormanager.h
index 2738181f7..59f8552d2 100644
--- a/src/actormanager.h
+++ b/src/actormanager.h
@@ -55,6 +55,9 @@ struct ChatObject;
typedef std::set<ActorSprite*> ActorSprites;
typedef ActorSprites::iterator ActorSpritesIterator;
typedef ActorSprites::const_iterator ActorSpritesConstIterator;
+typedef std::map<BeingId, ActorSprite*> ActorSpritesMap;
+typedef ActorSpritesMap::iterator ActorSpritesMapIterator;
+typedef ActorSpritesMap::const_iterator ActorSpritesMapConstIterator;
typedef std::map<BeingId, std::set<std::string> > IdNameMapping;
@@ -396,6 +399,7 @@ class ActorManager final: public ConfigListener
ActorSprites mActors;
ActorSprites mDeleteActors;
+ ActorSpritesMap mActorsIdMap;
IdNameMapping mIdName;
std::set<BeingId> mBlockedBeings;
#ifdef EATHENA_SUPPORT