1
This commit is contained in:
parent
442346967d
commit
647c8efd3c
@ -31,6 +31,7 @@ Android::Android():Human()
|
||||
|
||||
Android::~Android()
|
||||
{
|
||||
SetDestorying();
|
||||
if (agent_) {
|
||||
f8::BtMgr::Instance()->BtDestory(agent_);
|
||||
agent_ = nullptr;
|
||||
|
@ -48,6 +48,7 @@ Bullet::Bullet():MoveableEntity()
|
||||
|
||||
Bullet::~Bullet()
|
||||
{
|
||||
SetDestorying();
|
||||
--PerfMonitor::Instance()->entity_num[ET_Bullet];
|
||||
if (IsFlyHook()) {
|
||||
if (sender.Get()) {
|
||||
|
@ -39,6 +39,7 @@ Car::Car():Creature()
|
||||
|
||||
Car::~Car()
|
||||
{
|
||||
SetDestorying();
|
||||
--PerfMonitor::Instance()->entity_num[ET_Car];
|
||||
}
|
||||
|
||||
|
@ -78,6 +78,7 @@ Creature::Creature():MoveableEntity()
|
||||
|
||||
Creature::~Creature()
|
||||
{
|
||||
SetDestorying();
|
||||
for (auto itr = slave_heros_.begin(); itr != slave_heros_.end(); ++itr) {
|
||||
while (!list_empty(&itr->second)) {
|
||||
Hero* hero = list_first_entry(&itr->second,
|
||||
|
@ -15,6 +15,7 @@ Entity::Entity()
|
||||
|
||||
Entity::~Entity()
|
||||
{
|
||||
SetDestorying();
|
||||
--Perf::Instance()->entity_num;
|
||||
}
|
||||
|
||||
|
@ -42,6 +42,7 @@ Hero::Hero():Creature()
|
||||
|
||||
Hero::~Hero()
|
||||
{
|
||||
SetDestorying();
|
||||
DetachFromMaster();
|
||||
if (agent_) {
|
||||
f8::BtMgr::Instance()->BtDestory(agent_);
|
||||
|
@ -96,6 +96,7 @@ Human::Human():Creature()
|
||||
|
||||
Human::~Human()
|
||||
{
|
||||
SetDestorying();
|
||||
int i = 0;
|
||||
}
|
||||
|
||||
|
@ -15,6 +15,7 @@ Loot::Loot():RoomEntity()
|
||||
|
||||
Loot::~Loot()
|
||||
{
|
||||
SetDestorying();
|
||||
--PerfMonitor::Instance()->entity_num[ET_Loot];
|
||||
}
|
||||
|
||||
|
@ -30,6 +30,7 @@ Obstacle::Obstacle():Entity()
|
||||
|
||||
Obstacle::~Obstacle()
|
||||
{
|
||||
SetDestorying();
|
||||
--PerfMonitor::Instance()->entity_num[ET_Obstacle];
|
||||
}
|
||||
|
||||
|
@ -53,6 +53,7 @@ Player::Player():Human()
|
||||
|
||||
Player::~Player()
|
||||
{
|
||||
SetDestorying();
|
||||
--PerfMonitor::Instance()->entity_num[ET_Player];
|
||||
PlayerMgr::Instance()->DecAccountNum(account_id);
|
||||
}
|
||||
|
@ -34,6 +34,7 @@ RoomObstacle::RoomObstacle():Obstacle()
|
||||
|
||||
RoomObstacle::~RoomObstacle()
|
||||
{
|
||||
SetDestorying();
|
||||
if (!detached_) {
|
||||
if (master.Get()) {
|
||||
master.Get()->SlaveOnRemove(this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user