Exemple #1
0
 public void Subtract(ResourceList givenResourceList)
 {
     for (int i = 0; i < AMOUNT_OF_RESOURCES; i++)
     {
         int value = givenResourceList.GetAmount(ConvertInt(i));
         m_resourceList[i] -= value;
     }
 }
Exemple #2
0
 public int GetResource(int givenInt)
 {
     return(m_resource.GetAmount(ResourceList.ConvertInt(givenInt)));
 }