summaryrefslogtreecommitdiff
path: root/src/game-server/being.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-01-03 20:54:03 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-01-03 20:54:03 +0000
commit282ca19e33b79f4468ce6402406ddb1397f2d115 (patch)
tree8e9e3845353183c9838f7cce9eefcdbf566a9bd1 /src/game-server/being.cpp
parenta372dc5340a1d5653ef5a60c65c5a1501a333c6b (diff)
downloadmanaserv-282ca19e33b79f4468ce6402406ddb1397f2d115.tar.gz
manaserv-282ca19e33b79f4468ce6402406ddb1397f2d115.tar.bz2
manaserv-282ca19e33b79f4468ce6402406ddb1397f2d115.tar.xz
manaserv-282ca19e33b79f4468ce6402406ddb1397f2d115.zip
Starting to work on adding items to the map. Nothing concrete for now, just a few simplifications. Fixed file end-of-lines along the way.
Diffstat (limited to 'src/game-server/being.cpp')
-rw-r--r--src/game-server/being.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/game-server/being.cpp b/src/game-server/being.cpp
index 64986c26..da8f1f2c 100644
--- a/src/game-server/being.cpp
+++ b/src/game-server/being.cpp
@@ -24,16 +24,16 @@
#include "game-server/mapcomposite.hpp"
#include "utils/logger.h"
-void Being::damage(Damage damage)
-{
- int HPloss;
-
- HPloss = damage; // TODO: Implement complex damage calculation here
-
- mHitpoints -= HPloss;
- mHitsTaken.push_back(HPloss);
- LOG_DEBUG("Being " << getPublicID() << " got hit", 0);
-}
+void Being::damage(Damage damage)
+{
+ int HPloss;
+
+ HPloss = damage; // TODO: Implement complex damage calculation here
+
+ mHitpoints -= HPloss;
+ mHitsTaken.push_back(HPloss);
+ LOG_DEBUG("Being " << getPublicID() << " got hit", 0);
+}
void Being::performAttack(MapComposite *map)
{