예제 #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;
 }