Inheritance: PathfindingTest.Combat.DamageSource, Offsetable
Exemple #1
0
 public DamageEvent(Projectile by, Unit target)
 {
     this.by = by;
     this.target = target;
     this.usedModifier = this.GetModifier();
     this.damageDone = by.baseDamage * this.usedModifier;
 }
Exemple #2
0
 public void QueueProjectile(Projectile p)
 {
     this.projectileList.AddLast(p);
 }
 public ProjectileMultiplayerData(Projectile projectile, Boolean isLocal)
     : base(isLocal)
 {
     this.projectile = projectile;
 }
Exemple #4
0
 public void RemoveProjectile(Projectile projectile)
 {
     this.projectiles.Remove(projectile);
 }
Exemple #5
0
 public void AddProjectile(Projectile projectile)
 {
     this.projectiles.AddLast(projectile);
     SoundManager.GetInstance().PlaySFX(SoundManager.GetInstance().arrowSounds);
 }
Exemple #6
0
 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; }
 }
Exemple #7
0
 public void QueueProjectile(Projectile p)
 {
     if (!this.AlreadyInQueue(p)) this.projectileList.AddLast(p);
 }