Exemplo n.º 1
0
 public void Add(Resource resource)
 {
     Add(resource.Crop, resource.Gold, resource.Iron, resource.Wood, resource.Labor);
     Update();
 }
Exemplo n.º 2
0
 public bool HasEnough(Resource cost)
 {
     return(Crop.Value >= cost.Crop && Gold.Value >= cost.Gold && Wood.Value >= cost.Wood &&
            Iron.Value >= cost.Iron && Labor.Value >= cost.Labor);
 }