This commit is contained in:
aozhiwei 2023-04-02 16:56:41 +08:00
parent cdd5389b30
commit ff31a1d4b1

View File

@ -7,6 +7,7 @@
#include "collision.h"
#include "creature.h"
#include "obstacle.h"
#include "roomobstacle.h"
bool Collision::CheckBullet(IBullet* bullet, Creature* c)
{
@ -17,8 +18,11 @@ bool Collision::CheckBullet(IBullet* bullet, Creature* c)
);
}
bool Collision::CheckBullet(IBullet* bullet, Entity* c)
bool Collision::CheckBullet(IBullet* bullet, Entity* e)
{
if (e->IsEntityType(ET_Obstacle) && ((Obstacle*)e)->IsRoomObstacle()) {
RoomObstacle* ob = (RoomObstacle*)e;
}
return false;
}