summaryrefslogtreecommitdiff
path: root/src/gui/windows/minimap.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-13 01:04:05 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-13 01:04:05 +0300
commitea0b61e18f36f28806940b00a2cddaef912c3340 (patch)
tree616205f44832d4ced4fc0b50b650eedb0fbf435c /src/gui/windows/minimap.cpp
parent814e88e5ca69bc54837be27429dbf42dd41f7ac6 (diff)
downloadplus-ea0b61e18f36f28806940b00a2cddaef912c3340.tar.gz
plus-ea0b61e18f36f28806940b00a2cddaef912c3340.tar.bz2
plus-ea0b61e18f36f28806940b00a2cddaef912c3340.tar.xz
plus-ea0b61e18f36f28806940b00a2cddaef912c3340.zip
Move actor type into separate file.
Diffstat (limited to 'src/gui/windows/minimap.cpp')
-rw-r--r--src/gui/windows/minimap.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/windows/minimap.cpp b/src/gui/windows/minimap.cpp
index ffaba0c2f..8acbfc5a0 100644
--- a/src/gui/windows/minimap.cpp
+++ b/src/gui/windows/minimap.cpp
@@ -288,7 +288,7 @@ void Minimap::draw(Graphics *graphics)
const ActorSprites &actors = actorManager->getAll();
FOR_EACH (ActorSpritesConstIterator, it, actors)
{
- if (!(*it) || (*it)->getType() == ActorSprite::FLOOR_ITEM)
+ if (!(*it) || (*it)->getType() == ActorType::FLOOR_ITEM)
continue;
const Being *const being = static_cast<const Being *const>(*it);
@@ -316,20 +316,20 @@ void Minimap::draw(Graphics *graphics)
{
switch (being->getType())
{
- case ActorSprite::MONSTER:
+ case ActorType::MONSTER:
type = UserPalette::MONSTER;
break;
- case ActorSprite::NPC:
+ case ActorType::NPC:
type = UserPalette::NPC;
break;
- case ActorSprite::AVATAR:
- case ActorSprite::UNKNOWN:
- case ActorSprite::PLAYER:
- case ActorSprite::FLOOR_ITEM:
- case ActorSprite::PORTAL:
- case ActorSprite::PET:
+ case ActorType::AVATAR:
+ case ActorType::UNKNOWN:
+ case ActorType::PLAYER:
+ case ActorType::FLOOR_ITEM:
+ case ActorType::PORTAL:
+ case ActorType::PET:
default:
continue;
}