1
This commit is contained in:
parent
957d78e532
commit
08ce7453fe
@ -566,3 +566,13 @@ void Obstacle::OnBulletHit(Bullet* bullet)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Obstacle::CanThroughable(Creature* c)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Obstacle::CanThroughable(Bullet* bullet)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
@ -42,8 +42,8 @@ class Obstacle : public Entity
|
|||||||
virtual void OnPreCollision(Room* room) override;
|
virtual void OnPreCollision(Room* room) override;
|
||||||
virtual void OnBulletHit(Bullet* bullet) override;
|
virtual void OnBulletHit(Bullet* bullet) override;
|
||||||
virtual bool IsTerminatorAirDropBox(Room* room) { return false; }
|
virtual bool IsTerminatorAirDropBox(Room* room) { return false; }
|
||||||
virtual bool CanThroughable(Creature* c) { return false; }
|
virtual bool CanThroughable(Creature* c);
|
||||||
virtual bool CanThroughable(Bullet* bullet) { return false; }
|
virtual bool CanThroughable(Bullet* bullet);
|
||||||
void Explosion(Bullet* bullet);
|
void Explosion(Bullet* bullet);
|
||||||
void SetDoorInfo(Building* building, int door_id_x);
|
void SetDoorInfo(Building* building, int door_id_x);
|
||||||
bool IsDoor();
|
bool IsDoor();
|
||||||
|
@ -92,15 +92,6 @@ void RoomObstacle::RecalcSelfCollider()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RoomObstacle::CanThroughable(Creature* c)
|
|
||||||
{
|
|
||||||
if (master.Get()) {
|
|
||||||
return master.Get()->team_id == c->team_id && temp_through_;
|
|
||||||
} else {
|
|
||||||
return temp_through_;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void RoomObstacle::ActiveTimerFunc()
|
void RoomObstacle::ActiveTimerFunc()
|
||||||
{
|
{
|
||||||
if (!master.Get()) {
|
if (!master.Get()) {
|
||||||
@ -473,3 +464,12 @@ void RoomObstacle::Die(Room* room)
|
|||||||
DetachFromMaster();
|
DetachFromMaster();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool RoomObstacle::CanThroughable(Creature* c)
|
||||||
|
{
|
||||||
|
if (master.Get()) {
|
||||||
|
return master.Get()->team_id == c->team_id && temp_through_;
|
||||||
|
} else {
|
||||||
|
return temp_through_;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user