summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-06 16:37:19 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-06 16:37:19 +0300
commit7dfe062b9e33d863d23455453aae12ba592aac8b (patch)
tree62300b19a88dac0e67b2fe90fbec4eed8f93d39e /src/being
parent0f25d6e3defc9a6cd1cc2cd23b522abf8734c837 (diff)
downloadmanaplus-7dfe062b9e33d863d23455453aae12ba592aac8b.tar.gz
manaplus-7dfe062b9e33d863d23455453aae12ba592aac8b.tar.bz2
manaplus-7dfe062b9e33d863d23455453aae12ba592aac8b.tar.xz
manaplus-7dfe062b9e33d863d23455453aae12ba592aac8b.zip
remove unused includes and remove default parameter in being.
Diffstat (limited to 'src/being')
-rw-r--r--src/being/being.cpp18
-rw-r--r--src/being/being.h2
-rw-r--r--src/being/playerinfo.cpp1
-rw-r--r--src/being/playerinfo.h2
4 files changed, 10 insertions, 13 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 3bf1c4453..94e94161e 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -742,7 +742,7 @@ void Being::handleAttack(Being *const victim, const int damage,
setDirection(dir);
}
if (damage && victim->mType == PLAYER && victim->mAction == SIT)
- victim->setAction(STAND);
+ victim->setAction(STAND, 0);
if (mType == PLAYER)
{
@@ -795,7 +795,7 @@ void Being::handleSkill(Being *const victim, const int damage,
setDirection(dir);
}
if (damage && victim->mType == PLAYER && victim->mAction == SIT)
- victim->setAction(STAND);
+ victim->setAction(STAND, 0);
if (data)
{
if (damage > 0)
@@ -1337,7 +1337,7 @@ void Being::nextTile()
{
if (mPath.empty())
{
- setAction(STAND);
+ setAction(STAND, 0);
return;
}
@@ -1350,7 +1350,7 @@ void Being::nextTile()
if (!mMap || !mMap->getWalk(pos.x, pos.y, getWalkMask()))
{
- setAction(STAND);
+ setAction(STAND, 0);
return;
}
@@ -1366,7 +1366,7 @@ void Being::nextTile()
mY = pos.y;
const uint8_t height = mMap->getHeightOffset(mX, mY);
mOffsetY = height - mOldHeight;
- setAction(MOVE);
+ setAction(MOVE, 0);
}
void Being::logic()
@@ -1446,7 +1446,7 @@ void Being::logic()
}
if (mAction != MOVE)
- setAction(MOVE);
+ setAction(MOVE, 0);
// Update the player sprite direction.
// N.B.: We only change this if the distance is more than one pixel.
@@ -1480,7 +1480,7 @@ void Being::logic()
}
else if (mAction == MOVE)
{
- setAction(STAND);
+ setAction(STAND, 0);
}
}
else
@@ -1962,7 +1962,7 @@ void Being::setSprite(const unsigned int slot, const int id,
if (isWeapon)
mEquippedWeapon = &ItemDB::get(id);
- setAction(mAction);
+ setAction(mAction, 0);
}
if (!isTempSprite)
@@ -2899,7 +2899,7 @@ void Being::updatePercentHP()
{
mNumber = num;
if (updateNumber(mNumber))
- setAction(mAction);
+ setAction(mAction, 0);
}
}
}
diff --git a/src/being/being.h b/src/being/being.h
index 314787a56..dff4afbda 100644
--- a/src/being/being.h
+++ b/src/being/being.h
@@ -495,7 +495,7 @@ class Being : public ActorSprite, public ConfigListener
/**
* Sets the current action.
*/
- virtual void setAction(const Action &action, const int attackType = 0);
+ virtual void setAction(const Action &action, const int attackType);
/**
* Get the being's action currently performed.
diff --git a/src/being/playerinfo.cpp b/src/being/playerinfo.cpp
index bc7a6776b..a59acce38 100644
--- a/src/being/playerinfo.cpp
+++ b/src/being/playerinfo.cpp
@@ -24,7 +24,6 @@
#include "client.h"
#include "configuration.h"
#include "depricatedevent.h"
-#include "flooritem.h"
#include "inventory.h"
#include "itemsoundmanager.h"
diff --git a/src/being/playerinfo.h b/src/being/playerinfo.h
index 5311a24f4..bd4bff1b1 100644
--- a/src/being/playerinfo.h
+++ b/src/being/playerinfo.h
@@ -24,8 +24,6 @@
#include "equipment.h"
-#include "resources/soundinfo.h"
-
#include <map>
#include <string>