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