示例#1
0
 private static void RecordGenerateVillager(Models.Villager.Base person, bool isSuccessGenerateVillager)
 {
     if (isSuccessGenerateVillager)
     {
         _villagers.Add(person);
     }
 }
示例#2
0
        private bool DoGenerateVillager()
        {
            Models.Villager.Base myVillager = ChooseVillager();

            var villagerGenerate          = new PersonGenerate(myVillager);
            var isSuccessGenerateVillager = villagerGenerate.Generate(_resources);

            RecordGenerateVillager(myVillager, isSuccessGenerateVillager);
            var isAttack = GetIsAttack(isSuccessGenerateVillager);

            return(isAttack);
        }
示例#3
0
 private void SetVillagerCollectStatus(Models.Villager.Base villager)
 {
     villager.IsCollected = !villager.IsCollected;
 }