Exemple #1
0
        public void Init(int Humans, int Assassins)
        {
            var agentFactory = new AgentFactory();
            var humanFactory = new HumanFactory();

            for (int i = 0; i < Humans; i++)
            {
                humans.Add(humanFactory.CreateHuman());
            }

            for (int i = 0; i < Assassins; i++)
            {
                humans.Add(agentFactory.CreateHuman(humans));
            }

            field.Update(this.humans);
        }