Esempio n. 1
0
 // -----------------------------------------------------------------------------------
 // HasLoot
 // -----------------------------------------------------------------------------------
 public bool HasLoot()
 {
     return(gold > 0 || coins > 0 || inventory.Any(item => item.amount > 0));
 }
 // -----------------------------------------------------------------------------------
 // canStartHarvest
 // -----------------------------------------------------------------------------------
 public bool canStartHarvest()
 {
     return((totalResourcesMax <= 0 || currentResources > 0) && !inventory.Any(item => item.amount > 0));
 }