1
This commit is contained in:
parent
721515fc5c
commit
e2e2fefc23
@ -10,6 +10,11 @@ enum ExplosionType_e
|
|||||||
kExplosionEnemyAndObstacle = 2
|
kExplosionEnemyAndObstacle = 2
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Explosion::~Explosion()
|
||||||
|
{
|
||||||
|
int i = 0;
|
||||||
|
}
|
||||||
|
|
||||||
void Explosion::IndifferenceAttack(Room* room,
|
void Explosion::IndifferenceAttack(Room* room,
|
||||||
const a8::Vec2& center,
|
const a8::Vec2& center,
|
||||||
float explosion_range,
|
float explosion_range,
|
||||||
@ -134,7 +139,8 @@ void Explosion::InternalAttack()
|
|||||||
if (explosion_damage_delay_ <= 0) {
|
if (explosion_damage_delay_ <= 0) {
|
||||||
ProcDamage();
|
ProcDamage();
|
||||||
} else {
|
} else {
|
||||||
std::shared_ptr<Explosion>* self = new std::shared_ptr<Explosion>(this);
|
std::shared_ptr<Explosion>* self = new std::shared_ptr<Explosion>();
|
||||||
|
*self = shared_from_this();
|
||||||
room_->xtimer.AddDeadLineTimerAndAttach
|
room_->xtimer.AddDeadLineTimerAndAttach
|
||||||
(explosion_damage_delay_ / FRAME_RATE_MS,
|
(explosion_damage_delay_ / FRAME_RATE_MS,
|
||||||
a8::XParams()
|
a8::XParams()
|
||||||
|
@ -7,6 +7,7 @@ class EntityFactory;
|
|||||||
class Explosion : public std::enable_shared_from_this<Explosion>
|
class Explosion : public std::enable_shared_from_this<Explosion>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
~Explosion();
|
||||||
int exclude_uniid = 0;
|
int exclude_uniid = 0;
|
||||||
|
|
||||||
Room* GetRoom() { return room_; };
|
Room* GetRoom() { return room_; };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user