private static void RecordGenerateVillager(Models.Villager.Base person, bool isSuccessGenerateVillager) { if (isSuccessGenerateVillager) { _villagers.Add(person); } }
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); }
private void SetVillagerCollectStatus(Models.Villager.Base villager) { villager.IsCollected = !villager.IsCollected; }