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