Implements IDamageArea
Last updated
Was this helpful?
Was this helpful?
void OnEnemyListVsBulletListCollisionOccurred (Entities.Enemy enemy, Entities.Bullet bullet)
{
if(enemy.ShouldTakeDamage(bullet))
{
enemy.TakeDamage(bullet.DamageAmount);
}
}if(WasShootPressed)
{
var bullet = Factories.BulletFactory.CreateNew(this.X, this.Y);
bullet.XVelocity = 100;
bullet.DamageDealer = this;
}