diff options
author | Roderic Morris <roderic@ccs.neu.edu> | 2008-10-27 15:44:56 +0000 |
---|---|---|
committer | Roderic Morris <roderic@ccs.neu.edu> | 2008-10-27 15:44:56 +0000 |
commit | bbb9a98aeefaa1609dbd2455c102750c5005e05f (patch) | |
tree | 640b15c6b06a08d8fcd0f34102cf8dfebfafd66d /src/game-server/being.cpp | |
parent | ff9438ab94d19f0957a264ff79def01f9855b707 (diff) | |
download | manaserv-bbb9a98aeefaa1609dbd2455c102750c5005e05f.tar.gz manaserv-bbb9a98aeefaa1609dbd2455c102750c5005e05f.tar.bz2 manaserv-bbb9a98aeefaa1609dbd2455c102750c5005e05f.tar.xz manaserv-bbb9a98aeefaa1609dbd2455c102750c5005e05f.zip |
add effects sending system (by Chuck Miller)
Diffstat (limited to 'src/game-server/being.cpp')
-rw-r--r-- | src/game-server/being.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/game-server/being.cpp b/src/game-server/being.cpp index bcbbc6d9..130f1a75 100644 --- a/src/game-server/being.cpp +++ b/src/game-server/being.cpp @@ -29,6 +29,7 @@ #include "game-server/collisiondetection.hpp" #include "game-server/eventlistener.hpp" #include "game-server/mapcomposite.hpp" +#include "game-server/effect.hpp" #include "utils/logger.h" Being::Being(int type, int id): @@ -158,13 +159,16 @@ void Being::performAttack(Damage const &damage, AttackZone const *attackZone) i(getMap()->getAroundObjectIterator(this, attackZone->range)); i; ++i) { MovingObject *o = *i; + Point opos = o->getPosition(); + + Effects::show(Effects::FIRE_BURST,getMap(),opos); if (o == this) continue; int type = o->getType(); if (type != OBJECT_CHARACTER && type != OBJECT_MONSTER) continue; - Point opos = o->getPosition(); + switch (attackZone->shape) { @@ -172,7 +176,7 @@ void Being::performAttack(Damage const &damage, AttackZone const *attackZone) if (Collision::diskWithCircleSector( opos, o->getSize(), ppos, attackZone->range, - attackZone->angle/2, attackAngle) + attackZone->angle, attackAngle) ) { victims.push_back(static_cast< Being * >(o)); |