Exemplo n.º 1
0
        public static void CreateCitizens()
        {
            for (int i = 0; i < 30; i++)
            {
                Civilian c = new Civilian();
                Citizens.Add(c);
            }

            for (int i = 0; i < 20; i++)
            {
                Theif t = new Theif(i + 1);
                Citizens.Add(t);
            }

            for (int i = 0; i < 15; i++)
            {
                Police p = new Police();
                Citizens.Add(p);
            }
        }
Exemplo n.º 2
0
        private static void SocietyBuild()
        {
            for (int i = 0; i < 20; i++)
            {
                Theif Theif = new Theif();

                theif.Add(Theif);
            }

            for (int i = 0; i < 30; i++)
            {
                Citizen Citz = new Citizen(); // Citz items in List
                citizen.Add(Citz);
            }

            for (int i = 0; i < 20; i++)
            {
                Police Police = new Police();
                police.Add(Police);
            }
        }