/// <summary>
        /// Handles the killer score - this different per game mode
        /// </summary>
        /// <param name="killer">Tank that did the killing</param>
        /// <param name="killed">Tank that was killed</param>
        public override void HandleKillerScore(TankManager killer, TankManager killed)
        {
            //if you kill your own team mate or yourself you should lose points (personal kill count, not team kill count)
            if (killer.playerColor == killed.playerColor)
            {
                killer.DecrementScore();
            }
            //otherwise you should get points
            else
            {
                killer.IncrementScore();
            }

            IncrementTeamScore(killer, killed);

            RegenerateHudScoreList();
        }
Example #2
0
 /// <summary>
 /// Handles the player's suicide - for Deathmatch the score is decremented
 /// </summary>
 /// <param name="killer">The tank that kill themself</param>
 public override void HandleSuicide(TankManager killer)
 {
     killer.DecrementScore();
 }