public DamageEvent(Projectile by, Unit target) { this.by = by; this.target = target; this.usedModifier = this.GetModifier(); this.damageDone = by.baseDamage * this.usedModifier; }
public void QueueProjectile(Projectile p) { this.projectileList.AddLast(p); }
public ProjectileMultiplayerData(Projectile projectile, Boolean isLocal) : base(isLocal) { this.projectile = projectile; }
public void RemoveProjectile(Projectile projectile) { this.projectiles.Remove(projectile); }
public void AddProjectile(Projectile projectile) { this.projectiles.AddLast(projectile); SoundManager.GetInstance().PlaySFX(SoundManager.GetInstance().arrowSounds); }
public Boolean AlreadyInQueue(Projectile projectile) { try { for (int i = 0; i < this.projectileList.Count(); i++) { Projectile currentProjectile = this.projectileList.ElementAt(i); if (currentProjectile == projectile) return true; } return false; } catch (Exception e) { return false; } }
public void QueueProjectile(Projectile p) { if (!this.AlreadyInQueue(p)) this.projectileList.AddLast(p); }