예제 #1
0
 internal void RemoveProjectile(Projectile projectile)
 {
     toDestroy.Add(projectile);
     //Console.WriteLine(Projectiles);
 }
예제 #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
                }
            }
        }
예제 #3
0
 internal void AddProjectile(Projectile projectile)
 {
     toAdd.Add(projectile);
     //Console.WriteLine(Projectiles);
 }