Exemplo n.º 1
0
        /// <summary>
        /// Gets the statistics entry for the enemy.
        /// </summary>
        /// <param name="name">The name of enemy robot.</param>
        /// <returns></returns>
        public TargetStatistics GetStatistics(string name)
        {
            if (!TargetStatistics.ContainsKey(name))
            {
                TargetStatistics[name] = new TargetStatistics(name);
            }

            return(TargetStatistics[name]);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Gets the statistics entry for the enemy.
        /// </summary>
        /// <param name="name">The name of enemy robot.</param>
        /// <returns></returns>
        public TargetStatistics GetStatistics(string name)
        {
            if (!TargetStatistics.ContainsKey(name))
            {
                TargetStatistics[name] = new TargetStatistics(name);
            }

            return TargetStatistics[name];
        }