Exemple #1
0
        public AgentStatistics(AgentStatistics factoryStats)
        {
            this.stats = new Dictionary<AgentStatistic, AgentStatisticValue>();

            foreach ( AgentStatistic stat in Enum.GetValues(typeof(AgentStatistic)) )
            {
                var val = (factoryStats == null) ? new AgentStatisticValue(stat, 0) : factoryStats[stat].Clone();
                this.stats.Add(stat, val);
            }
        }
Exemple #2
0
 public Agent(Corporation employer)
 {
     Employer = employer;
     Stats = new AgentStatistics();
 }