Ejemplo n.º 1
0
    public void AddResources(EResources resource, int n)
    {
        switch (resource)
        {
        case EResources.APPRENTICES:
            apprentices.AddResource(n);
            break;

        case EResources.FOOD:
            food.AddResource(n);
            break;

        case EResources.GOLD:
            gold.AddResource(n);
            break;

        case EResources.POWER:
            power.AddResource(n);
            break;
        }
    }