Example #1
0
 public bool Subtract(Resources other)
 {
     if(this.Primary >= other.Primary)
     {
         this.Primary = this.Primary - other.Primary;
         return true;
     }
     return false;
 }
Example #2
0
 public bool CanAfford(Resources cost)
 {
     return this.Primary >= cost.Primary;
 }