From c2efedab22275302f0a10cc197424d345a021d18 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 17 Jun 2012 20:13:48 +0300 Subject: Replace SDL int types to C++ types. --- src/actorspritemanager.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/actorspritemanager.cpp') diff --git a/src/actorspritemanager.cpp b/src/actorspritemanager.cpp index 525204008..ecadc4b67 100644 --- a/src/actorspritemanager.cpp +++ b/src/actorspritemanager.cpp @@ -76,7 +76,7 @@ class FindBeingFunctor || b->getType() == type)); } - Uint16 x, y; + uint16_t x, y; ActorSprite::Type type; } beingFinder; @@ -228,7 +228,7 @@ void ActorSpriteManager::setPlayer(LocalPlayer *player) } Being *ActorSpriteManager::createBeing(int id, ActorSprite::Type type, - Uint16 subtype) + uint16_t subtype) { Being *being = new Being(id, type, subtype, mMap); @@ -301,8 +301,8 @@ Being *ActorSpriteManager::findBeing(int id) const Being *ActorSpriteManager::findBeing(int x, int y, ActorSprite::Type type) const { - beingFinder.x = static_cast(x); - beingFinder.y = static_cast(y); + beingFinder.x = static_cast(x); + beingFinder.y = static_cast(y); beingFinder.type = type; ActorSpritesConstIterator it = find_if(mActors.begin(), mActors.end(), @@ -1217,7 +1217,7 @@ bool ActorSpriteManager::hasActorSprite(ActorSprite *actor) const return false; } -void ActorSpriteManager::addBlock(Uint32 id) +void ActorSpriteManager::addBlock(uint32_t id) { bool alreadyBlocked(false); for (int i = 0; i < static_cast(blockedBeings.size()); ++i) @@ -1232,10 +1232,10 @@ void ActorSpriteManager::addBlock(Uint32 id) blockedBeings.push_back(id); } -void ActorSpriteManager::deleteBlock(Uint32 id) +void ActorSpriteManager::deleteBlock(uint32_t id) { - std::vector::iterator iter = blockedBeings.begin(); - std::vector::iterator iter_end = blockedBeings.end(); + std::vector::iterator iter = blockedBeings.begin(); + std::vector::iterator iter_end = blockedBeings.end(); while (iter != iter_end) { if (*iter == id) @@ -1246,7 +1246,7 @@ void ActorSpriteManager::deleteBlock(Uint32 id) } } -bool ActorSpriteManager::isBlocked(Uint32 id) +bool ActorSpriteManager::isBlocked(uint32_t id) { bool blocked(false); for (int i = 0; i < static_cast(blockedBeings.size()); ++i) -- cgit v1.2.3-70-g09d2