Cleaned up projectile "collide" checks

This commit is contained in:
Dylan K. Taylor
2018-03-04 12:19:41 +00:00
parent 9e4bccd8c0
commit 2ff3b12376
4 changed files with 574 additions and 8 deletions

View File

@ -67,6 +67,10 @@ abstract class Projectile extends Entity{
return $entity instanceof Living and !$this->onGround;
}
public function canBeCollidedWith() : bool{
return false;
}
/**
* Returns the amount of damage this projectile will deal to the entity it hits.
* @return int