Duke176
Warlord
I was trying to study the way to add a counter in order to return the number of something owned by a civ.
I was thinking at something like this:
where I say if you get all the improvements and you find any called IMPROVEMENT_WELL add 1 to iT.
Is this correct?
I'm finding really hard to understand how does the counter works...
Can anyone help me? or even point me to a good tutoral about this?
Thx.
I was thinking at something like this:
Code:
int iI;
for (iI = 0; iI < GC.getNumImprovementInfos(); iI++)
{
if GC.getImprovementInfo(eImprovement) = GC.getImprovementInfo(GC.getTypeForString("IMPROVEMENT_WELL"));
iT++;
where I say if you get all the improvements and you find any called IMPROVEMENT_WELL add 1 to iT.
Is this correct?
I'm finding really hard to understand how does the counter works...
Can anyone help me? or even point me to a good tutoral about this?
Thx.