Exemplo n.º 1
0
 internal void RemoveProjectile(Projectile projectile)
 {
     toDestroy.Add(projectile);
     //Console.WriteLine(Projectiles);
 }
Exemplo n.º 2
0
        public void Damage(Projectile projectile)
        {
            Health -= (int)projectile.Damage;

            if(Health <= 0)
            {
                //player got killed by projectile.Owner
                //Life--
                //OTHER player got ++ Kills
                //THIS player got ++ Deaths
                //Play death animation && death-sound
                //respawn!
                Deaths++;
                projectile.Owner.Kills++;
                Life--;

                if (Life <= 0)
                {
                    //TODO!!
                    //Game Over
                }
            }
        }
Exemplo n.º 3
0
 internal void AddProjectile(Projectile projectile)
 {
     toAdd.Add(projectile);
     //Console.WriteLine(Projectiles);
 }