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