Hi guys,

Another question regarding Building.cpp for 0.9.3, this time about the
following function:

*int Building::neededRessource(int r)
{
    assert(r >= 0);
    int need = type->maxRessource[r] - ressources[r] + 1 -
type->multiplierRessource[r];
    if (need > 0)
        return need;
    else
        return 0;
}*

1. What is type->multiplierRessource and why is the value of
*need*calculated like that?

2. If I simply want the exact number of resource r that the building can
still hold, will it be accurate for me to just use the expression
"*type->maxRessource[r]
- ressources[r]*"?

Thanks a lot.
Quinn


On Wed, Oct 15, 2008 at 4:57 PM, Quinn Yee Qin Teh <[EMAIL PROTECTED]>wrote:

>  Great! Thanks.
>
>
>
>   On Wed, Oct 15, 2008 at 4:40 AM, Bradley Arsenault <[EMAIL PROTECTED]>wrote:
>
>>
>>
>>  On Sat, Oct 11, 2008 at 3:14 PM, Quinn Yee Qin Teh <[EMAIL PROTECTED]>wrote:
>>
>>>  Another question, does subscribeToBringRessourcesStep() cover building
>>> construction sites?
>>>
>>> Thanks
>>>
>>
>> Yes it does. It covers anything that needs to have ressources brought to
>> it.
>>
>>
>>
>> --
>> Extra cheese comes at a cost. Bradley Arsenault.
>>
>> _______________________________________________
>> glob2-devel mailing list
>> [email protected]
>> http://lists.nongnu.org/mailman/listinfo/glob2-devel
>>
>>
>
_______________________________________________
glob2-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/glob2-devel

Reply via email to